Exporting multi responses created for a single Http Route #1321
-
When i try to use "Export current environment to Open API v3 (JSON)" , its not exporting all the responses (more than one response) created for a Http Router. It exports only the active one. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
OpenAPI support is only partial. Our system is currently able to export multiple responses, but as they are mapped from the status code , you may lose some information. Also, please note that not all of Mockoon's features necessarily have an equivalent in the OpenAPI specification. |
Beta Was this translation helpful? Give feedback.
OK, exporting in OpenAPI is definitely not a backup.
Backuping your Mockoon setup is easy. Each mock API is in a separated JSON file.
You can locate it using the context menu, and even move the data file. Like this you can, for example, put it in a git tracked folder, or in a Dropbox/OneDrive/GDrive folder: https://mockoon.com/docs/latest/mockoon-data-files/data-storage-location/
You can even copy the whole config to the clipboard to quickly save it in a GitHub gist or file or anywhere else: