Programmatically export data #3629
Replies: 7 comments
-
I think this is definitely something suited for Inso, as we have export functions for Designer but not Core. |
Beta Was this translation helpful? Give feedback.
-
I like this idea. I'm spending a lot of time at the moment maintaining a set of exported insomnia workspaces for my team. We're updating the collections regularly and exporting them back to the git repository is a pain once you've done it for the tenth time in a day. |
Beta Was this translation helpful? Give feedback.
-
Hi @scottmmmm, have you explored using the Git sync functionality within Designer? It will sync directly to a git repository, instead of having to manually export your workspace and commit into git. https://support.insomnia.rest/article/96-git-sync |
Beta Was this translation helpful? Give feedback.
-
Thanks for the suggestion. We can't use Designer for this as we don't use OpenAPI. We use Core to create a set of requests that show how each of our APIs work. |
Beta Was this translation helpful? Give feedback.
-
Oh! You can still use Designer, just don't write a specification and go straight to the debug tab. You can export your workspace(s) from Core and import into Designer, and use the requests as-is without OpenAPI. We are looking to consolidate the sync systems soon, but as an interim solution. 😊 |
Beta Was this translation helpful? Give feedback.
-
That is interesting. Hadn't realised the designer could be used in that way. Unfortunately issue 2639 means I can't use git sync with our corporate git repository, but if that ever gets resolved it looks promising. |
Beta Was this translation helpful? Give feedback.
-
We would also benefit from that. We have our public API on GitLab with Git sync and to debug and test local instances we use a |
Beta Was this translation helpful? Give feedback.
-
Hi!
Scenario
Problem
Insomnia Documenter uses the export json file to create a nice looking documentation: https://api.projectalice.io/ . This json file can be obtained by exporting the Insomnia data as in: application => preferences => data => export, but not programatically using
inso
cli. This leads to me having to pull the latest changes made by the team, daily, export the data and upload it to my webhost.Possible solutions
inso
npm package. This would allow Github actions to install the CLI and export the data in the desired format.Benefits
Having such a function would allow a totally automated workflow when pushing new data on the API repo, allowing everyone to generate nice documentation without any hassle. I must say, it competes easily with Postman
Beta Was this translation helpful? Give feedback.
All reactions