oaie-sketch icon indicating copy to clipboard operation
oaie-sketch copied to clipboard

Ability to save spec by calling remote url and load spec by getting data from remote url + way to clear settings

Open sergeyglazyrindev opened this issue 4 years ago • 2 comments
trafficstars

Hello guys! I am working on integrating open api support into some go project (uadmin -> but I am heavily changing it to be easily used in real projects) So, I found this project, I am gonna provide a way to start a server where developers which use uadmin have out of the box way to start locally oaie-sketch and ability to load/save spec from/to remote url. So, I refactored this project a little bit, now it's ready to be published as own npm package that could be easily used in javascript world. The main goal is provide a way to work with oaie-sketch locally. Please review my solution.

sergeyglazyrindev avatar Jun 06 '21 19:06 sergeyglazyrindev

Here is an example of usage: For example I open my local url: http://localhost:8083/?saveToFileEndpoint=/spec and in this changeset I store/load spec from the fs. https://github.com/sergeyglazyrindev/uadmin/commit/2d7b445ba225e9d32291f8fdb53c303c1129c9dc

sergeyglazyrindev avatar Jun 06 '21 22:06 sergeyglazyrindev

This is first step of improvements, I am gonna move all code into typescript and cover with tests, etc.

sergeyglazyrindev avatar Jun 09 '21 13:06 sergeyglazyrindev