mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Improved swagger definition
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user