Apidays London 2024 - Develop in parallel and ship earlier with OpenAPI and mocking, Tom Akehurst.pdf

APIdays_official 137 views 12 slides Oct 10, 2024
Slide 1
Slide 1 of 12
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

About This Presentation

Develop in Parallel and Ship Earlier with OpenAPI and Mocking
Tom Akehurst, CTO and Co-Founder - WireMock

apidays London 2024 - APIs for Smarter Platforms and Business Processes
September 18 & 19, 2024


Slide Content

|1
Develop in parallel
and ship earlier with
OpenAPI and
mocking
1
PRESENTED BY:

Tom Akehurst
CTO and co-founder, WireMock
@TomAkehurst

|
●●API-driven architectures - microservices, SOA, partner integrations
●New product features often require new features in several APIs
●Leads to dependency chains between teams
2
Serial vs. Parallel in API centric systems

|
SSO
Customer
profile
Inventory
Bookings
Search
Favourites
Customer
profile
App
Inventory
Search
Bookings
Favourites
App

|4
SSO
Customer
profile
Inventory
Bookings
Search
Favourites
Customer
profile
App
Inventory
Search
Bookings
Favourites
App
Sprint1234

|
Service A Client B
API
Mock Service A
API
What is mocking?

|

|
●●Mocks are quick to build - available almost immediately
●No need to wait for depended-on API features to be shipped
●Early feedback on API design = much cheaper to fix issues
7
Mocking enables parallel working

|8
SSO
Customer
profile
Inventory
Bookings
Search
Favourites
Customer
profile
App
Inventory
Search
Bookings
App
Favourites
Sprint12
Mock
SSO
Mock
Customer
Profile
Mock
Inventory
Mock
Search
Mock
Bookings
Mock
Favourites

|
Mocking with OpenAPI
9
●Generate mocks from spec
●Generate spec elements from mocks -
prototyping
●Validate traffic against spec - contract
testing
However…
●OpenAPI is not primarily intended for
mock generation

●Generated mocks are simplistic

|
Demo Time!

|

|12
Want to see more?
https://www.wiremock.io/demo
PRESENTED BY:

Tom Akehurst
CTO and co-founder, WireMock
@TomAkehurst