Apidays New York 2024 - Increase your productivity with no-code GraphQL mocking by Hugo Guerrero, Red Hat

APIdays_official 71 views 21 slides May 23, 2024
Slide 1
Slide 1 of 21
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21

About This Presentation


Increase your productivity with no-code GraphQL mocking
Hugo Guerrero, Chief Software Architect, APIs & Integration Developer Advocate at Red Hat

Apidays New York 2024: The API Economy in the AI Era (April 30 & May 1, 2024)

------

Check out our conferences at https://www.apidays.global/
...


Slide Content

#APIDAYSNEWYORK
Boost your productivity with
no-code GraphQL mocking
Hugo Guerrero
Developer Advocate, Red Hat
@hguerreroo

#APIDAYSNEWYORK@HGUERREROO #APIDAYSNEWYORK
Developer Productivity
@HGUERREROO

#APIDAYSNEWYORK@HGUERREROO #APIDAYSNEWYORK
Fake it ‘till
you make it!
Photo by Inês Pimentel on Unsplash@HGUERREROO

@HGUERREROO #APIDAYSNEWYORK
Hugo Guerrero

APIs Developer Advocate @ Red Hat
Open Source Contributor
History, Travel & Food Enthusiast

Microcks maintainer

@HGUERREROO #APIDAYSNEWYORK
Many API challenges to address...
#1 - Shorten
feedback loop
#3 - Validate
implementations
#2 - Parallelize
developments

#APIDAYSNEWYORK@HGUERREROO #APIDAYSNEWYORK"DSC_0043.JPG" (CC BY 2.0) by scottfeldstein
Fro??end
Backend
Busi?ess
@HGUERREROO

#APIDAYSNEWYORK@HGUERREROO #APIDAYSNEWYORKPhoto by Kelly Sikkema on Unsplash
Schemas & types
are the new
contracts
@HGUERREROO

#APIDAYSNEWYORK@HGUERREROO
What do you use to create
GraphQL Schemas?
ⓘ Start presenting to display the poll results on this slide.

#APIDAYSNEWYORKicons by Made x Made from the Noun Project@MICROCKSIO
The importance of
CONTRACT and EXAMPLES

GENERATED
EXAMPLES
GENERATED
REAL-LIFE
BUSINESS EXPECTATIONS
EXECUTABLE SPECIFICATIONS
MOCKS
& TESTS

@HGUERREROO #APIDAYSNEWYORK
GraphQL Mocks
https://www.apollographql.com/docs/apollo-server/testing/mocking/
https://the-guild.dev/graphql/tools/docs/mocking

#APIDAYSNEWYORK@HGUERREROO #APIDAYSNEWYORK
Look Ma!
Mocking
without
Coding
@HGUERREROO "Freestyle Motocross" (CC BY-ND 2.0) by Chris Doelle

@HGUERREROO #APIDAYSNEWYORK
Contracts & Examples

@HGUERREROO #APIDAYSNEWYORK
GraphQL mocking with Microcks
Open source Kubernetes-native tool for API Mocking
and Testing.
It provides an enterprise-grade solution to speed up,
secure and scale your API strategy for the digital era.
Microcks references almost any type of APIs or
microservices contracts and examples.

http://microcks.io

@HGUERREROO #APIDAYSNEWYORK
Microcks Use-cases
API
Provider
API
Provider
API
Consumer
Turn specification into live mocks ! Ensure your implementation
is compliant with contract

#APIDAYSNEWYORK@HGUERREROO
Magic
Demo
Time
Photo by Unsplash
#APIDAYSNEWYORK

EASE COLLABORATION
REUSE YOUR ASSETS
FOSTER INNOVATION
AND RAPID FEEDBACKS
CONTINUOUS SIMULATION AND
COMPLIANCE VALIDATION
SAME TOOLS FOR REST & SOAP
AND ASYNC API
COMMUNITY HUB TO SHARE MOCKS AND TESTS !!
Mocking Takeaways
icons by Made x Made from the Noun Project #APIDAYSNEWYORK@HGUERREROO

@MICROCKSIO #GRAPHQL CONF 2023
OpenAPI
Specification
2.x, 3.x
AsyncAPI
Specification
2.x/3.x
Traditional APIs Event-driven Systems
CloudEvents
Specification
1.0.x
Soap WebServices
(SoapUI)
5.1+
Postman Collection
(JSON)
2.x
GraphQLgRPC Services
3.x
General Purpose
Kafka broker
MQTT broker
WebSocket server
RabbitMQ
NATS.io
Google Pub/Sub
Microcks covers “ALL” Kinds of API
AWS SQS + SNS

@HGUERREROO #APIDAYSNEWYORK
More Resources
Microcks GraphQL Documentation
https://microcks.io/documentation/using/graphql/


GraphQL features in Microcks: what to expect?
https://microcks.io/blog/graphql-features-what-to-expect/

Continuous Testing
https://microcks.io/blog/continuous-testing-all-your-apis/

TestContainers Module
https://testcontainers.com/modules/microcks/

@HGUERREROO #APIDAYSNEWYORK
We Need You!
Try Microcks (microcks.io) !
We are on Discord microcks.io/community
Follow us on Twitter @microcksio,

Distribute, & if you like it.
Itʼs a 100% Open Source.
And if you love it, contribute !

@HGUERREROO #APIDAYSNEWYORK
THANK YOU !
Hugo Guerrero

Twitter: @hguerreroo

https://www.youtube.com/user/hguerreroo

https://developers.redhat.com/author/hugo-guerrero