DEV Community

Discussion on: API Mocking Strategies for JavaScript Applications

Collapse
 
mrtnvh profile image
Maarten Van Hoof

Great post. Thanks for sharing. I'd also like to mention, if you have a OpenAPI/Swagger document to your disposal, you should consider looking in to Stoplight's Prism. It's a tool that automagically creates an entire mocking server, incl request validation etc, based on the given OpenAPI document. It has saved me countless hours!

Collapse
 
kettanaito profile image
Artem Zakharchenko

That's a great suggestion, Maarten! I suppose there are multiple ways to spawn a local mocking server, including deriving it from some sort of API specification.