Fine tune an OpenAPI specification for mocking

JoliCode - JoliCodeBlog - 06/01
More and more often, in the projects I work on, I need to mock APIs. When I’m lucky enough, the API provides an OpenAPI specification, but sometimes it can be heavy. I almost never need to locally mock the whole API, only a few endpoints. Mocking the whole API, with Prism for example,

More and more often, in the projects I work on, I need to mock APIs. When I’m lucky enough, the API provides an OpenAPI specification, but sometimes it can be heavy.

I almost never need to locally mock the whole API, only a few endpoints. Mocking the whole API, with Prism for example, could lead to issues like route priority, or performance. The question is: how can I filter the specification to only get the needed endpoints?

Furthermore, for those endp...
[Courte citation de 8% de l'article original]

Loading...