-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
21 lines (21 loc) · 931 Bytes
/
package.json
File metadata and controls
21 lines (21 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"name": "goodapi-demo-api",
"version": "1.0.0",
"main": "index.js",
"repository": "https://github.com/apidesigner/goodapi-demo-api.git",
"author": "Z z@goodapi.co",
"license": "MIT",
"devDependencies": {
"@supermodel/cli": "^0.46.26",
"swagger-cli": "^2.2.1"
},
"scripts": {
"test": "yarn test-build",
"test-input": "swagger-cli validate ./design/demo-florist-api.yaml",
"test-build": "swagger-cli validate ./build/demo-florist-api.yaml",
"test-models": "supermodel schema validate ./supermodel/<username>/",
"build": "mkdir -p ./build && cp ./design/demo-florist-api.yaml ./build/",
"publish-api": "curl -X POST https://api.swaggerhub.com/apis/api-program/demo-florist-api --data-binary @./build/demo-florist-api.yaml -H \"Authorization:${SWAGGERHUB_API_KEY}\" -H \"Content-Type: application/yaml\"",
"publish-models": "cd ./supermodel/<username>/ && supermodel push"
}
}