apidays LIVE Hong Kong 2021 - API Ecosystem & Data Interchange
August 25 & 26, 2021
API Mocking best practices
Archana Patel, Customer Success Architect at Mulesoft
14. Mountebank
● Allows static mocks as well as
record/replay
● Provides flexibility in configuring
mock behaviours
● Easy setup
● Multi-protocol
15. MockServer
● Allows static mocks, record/replay
plus some other options
● Multiple ways to use (REST API /
Java / Javascript)
● Easy setup
● UI for debugging
23. To sum it up...
● Make sure the mocks are accurately matching to the API specification
● Make sure your mocks are current and regularly updated
● Use record/replay if you can
● Don’t over-engineer it
● Find a balance between what to mock and what not to mock
● Don’t forget to test for negative test cases / error handling
A little bit more about myself - I am Customer Success Architect at MuleSoft, It’s a lengthy title but what it means is that I help customers get the most out of the MuleSoft products for their integration needs. I am based in Wellington NZ and mostly work with customers and partners in the APAC region.
Before joining MuleSoft, I have worked as an Integration developer for various companies in NZ, designing and developing APIs in banking, airline etc
Now you all have been through a long day of API talks and I’m hugely aware of the fact that I’m standing between you and a much-needed break so I’ve kept the agenda simple and easy on information.