znsio / specmatic

Turn your contracts into executable specifications. Contract Driven Development - Collaboratively Design & Independently Deploy MicroServices & MicroFrontends.
https://specmatic.io
MIT License
275 stars 51 forks source link

Add dump endpoint for Specmatic proxy server #1266

Closed yogeshnikam671 closed 3 weeks ago

yogeshnikam671 commented 4 weeks ago

What: Adds a /_specmatic/proxy/dump POST endpoint for Specmatic proxy server.

Why: Currently the Specmatic proxy server needs to be shut down for dumping the generated spec and examples into the output directory. With this endpoint, we need not have to do that. We can trigger this dump of generated spec and examples without having to stop the proxy server.

How: By adding an endpoint in the proxy server which can be hit to trigger the generation of spec and examples in the output directory.

Checklist: