Improved swagger definition

This commit is contained in:
Alejandro Celaya
2016-10-23 00:02:13 +02:00
parent 8a12ed6b8c
commit b225c03ef1
6 changed files with 10 additions and 5 deletions

View File

@@ -6,28 +6,33 @@
"version": "1.2.0" "version": "1.2.0"
}, },
"schemes": [ "schemes": [
"http",
"https" "https"
], ],
"basePath": "/rest", "basePath": "/rest",
"produces": [ "produces": [
"application/json" "application/json"
], ],
"consumes": [
"application/x-www-form-urlencoded",
"application/json"
],
"paths": { "paths": {
"/v1/authenticate": { "/v1/authenticate": {
"$ref": "endpoints/v1_authenticate.json" "$ref": "paths/v1_authenticate.json"
}, },
"/v1/short-codes": { "/v1/short-codes": {
"$ref": "endpoints/v1_short-codes.json" "$ref": "paths/v1_short-codes.json"
}, },
"/v1/short-codes/{shortCode}": { "/v1/short-codes/{shortCode}": {
"$ref": "endpoints/v1_short-codes_{shortCode}.json" "$ref": "paths/v1_short-codes_{shortCode}.json"
}, },
"/v1/short-codes/{shortCode}/visits": { "/v1/short-codes/{shortCode}/visits": {
"$ref": "endpoints/v1_short-codes_{shortCode}_visits.json" "$ref": "paths/v1_short-codes_{shortCode}_visits.json"
}, },
"/v1/short-codes/{shortCode}/tags": { "/v1/short-codes/{shortCode}/tags": {
"$ref": "endpoints/v1_short-codes_{shortCode}_tags.json" "$ref": "paths/v1_short-codes_{shortCode}_tags.json"
} }
} }
} }