2016-10-22 16:44:14 -05:00
|
|
|
{
|
|
|
|
"swagger": "2.0",
|
|
|
|
"info": {
|
|
|
|
"title": "Shlink",
|
|
|
|
"description": "Shlink, the self-hosted URL shortener",
|
2017-07-08 05:55:33 -05:00
|
|
|
"version": "1.0"
|
2016-10-22 16:44:14 -05:00
|
|
|
},
|
|
|
|
"schemes": [
|
2016-10-22 17:02:13 -05:00
|
|
|
"http",
|
2016-10-22 16:44:14 -05:00
|
|
|
"https"
|
|
|
|
],
|
|
|
|
"basePath": "/rest",
|
|
|
|
"produces": [
|
|
|
|
"application/json"
|
|
|
|
],
|
2016-10-22 17:02:13 -05:00
|
|
|
"consumes": [
|
|
|
|
"application/x-www-form-urlencoded",
|
|
|
|
"application/json"
|
|
|
|
],
|
2016-10-22 16:44:14 -05:00
|
|
|
|
|
|
|
"paths": {
|
|
|
|
"/v1/authenticate": {
|
2016-10-22 17:02:13 -05:00
|
|
|
"$ref": "paths/v1_authenticate.json"
|
2016-10-22 16:44:14 -05:00
|
|
|
},
|
2017-07-08 05:55:33 -05:00
|
|
|
|
2016-10-22 16:44:14 -05:00
|
|
|
"/v1/short-codes": {
|
2016-10-22 17:02:13 -05:00
|
|
|
"$ref": "paths/v1_short-codes.json"
|
2016-10-22 16:44:14 -05:00
|
|
|
},
|
|
|
|
"/v1/short-codes/{shortCode}": {
|
2016-10-22 17:02:13 -05:00
|
|
|
"$ref": "paths/v1_short-codes_{shortCode}.json"
|
2016-10-22 16:44:14 -05:00
|
|
|
},
|
|
|
|
"/v1/short-codes/{shortCode}/tags": {
|
2016-10-22 17:02:13 -05:00
|
|
|
"$ref": "paths/v1_short-codes_{shortCode}_tags.json"
|
2017-07-08 05:55:33 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
"/v1/tags": {
|
|
|
|
"$ref": "paths/v1_tags.json"
|
|
|
|
},
|
|
|
|
|
|
|
|
"/v1/short-codes/{shortCode}/visits": {
|
|
|
|
"$ref": "paths/v1_short-codes_{shortCode}_visits.json"
|
2016-10-22 16:44:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|