create HTTP request from backend swagger spec json file.
AutoSwagger is a swagger(openAPI) tool running in Electron, it can import a swagger(openAPI) document then send request and receive response in a convenience way.
# install dependencies
npm install
# serve with hot reload at localhost:9080
npm run dev
# build electron application for production
npm run build
these objects initialized in `src/renderer/datastore/index.jsâ
represnt for one swagger json document
{
"id":0,
"name":"default-workspace",
"desc":""
}
corresonding tags in swagger json document
{
"id":0,
"workspaceId":0,
"name":"default-folder"
}
{
"id":0,
"workspaceId":0,
"folderId":null,
"name":"new-request-01",
"method":"GET",
"url":"",
"data":null,
"sort":0
}
{
"id":null,
"requestId":null,
"header":null,
"data":null
}
app state, would restore everytime
{
id: 0,
lastWorkspaceId: 0,
lastFolderId: 0,
lastRequestId: 0,
openedSubmenuList:[]
}
This project was generated with electron-vue using vue-cli,lowdb. Documentation about the original structure can be found here.