Separated swagger specification into multiple files

This commit is contained in:
Alejandro Celaya
2016-10-22 23:44:14 +02:00
parent c3fd433446
commit 8a12ed6b8c
13 changed files with 458 additions and 448 deletions

33
docs/swagger/swagger.json Normal file
View File

@@ -0,0 +1,33 @@
{
"swagger": "2.0",
"info": {
"title": "Shlink",
"description": "Shlink, the self-hosted URL shortener",
"version": "1.2.0"
},
"schemes": [
"https"
],
"basePath": "/rest",
"produces": [
"application/json"
],
"paths": {
"/v1/authenticate": {
"$ref": "endpoints/v1_authenticate.json"
},
"/v1/short-codes": {
"$ref": "endpoints/v1_short-codes.json"
},
"/v1/short-codes/{shortCode}": {
"$ref": "endpoints/v1_short-codes_{shortCode}.json"
},
"/v1/short-codes/{shortCode}/visits": {
"$ref": "endpoints/v1_short-codes_{shortCode}_visits.json"
},
"/v1/short-codes/{shortCode}/tags": {
"$ref": "endpoints/v1_short-codes_{shortCode}_tags.json"
}
}
}