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"
},
"schemes": [
"http",
"https"
],
"basePath": "/rest",
"produces": [
"application/json"
],
"consumes": [
"application/x-www-form-urlencoded",
"application/json"
],
"paths": {
"/v1/authenticate": {
"$ref": "endpoints/v1_authenticate.json"
"$ref": "paths/v1_authenticate.json"
},
"/v1/short-codes": {
"$ref": "endpoints/v1_short-codes.json"
"$ref": "paths/v1_short-codes.json"
},
"/v1/short-codes/{shortCode}": {
"$ref": "endpoints/v1_short-codes_{shortCode}.json"
"$ref": "paths/v1_short-codes_{shortCode}.json"
},
"/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": {
"$ref": "endpoints/v1_short-codes_{shortCode}_tags.json"
"$ref": "paths/v1_short-codes_{shortCode}_tags.json"
}
}
}