2016-10-22 16:44:14 -05:00
|
|
|
{
|
|
|
|
"swagger": "2.0",
|
|
|
|
"info": {
|
|
|
|
"title": "Shlink",
|
|
|
|
"description": "Shlink, the self-hosted URL shortener",
|
|
|
|
"version": "1.2.0"
|
|
|
|
},
|
|
|
|
"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
|
|
|
},
|
|
|
|
"/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}/visits": {
|
2016-10-22 17:02:13 -05:00
|
|
|
"$ref": "paths/v1_short-codes_{shortCode}_visits.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"
|
2016-10-22 16:44:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|