shlink/docs/swagger/swagger.json

62 lines
1.5 KiB
JSON
Raw Normal View History

{
2018-02-03 02:53:40 -06:00
"openapi": "3.0.0",
"info": {
"title": "Shlink",
"description": "Shlink, the self-hosted URL shortener",
2017-07-08 05:55:33 -05:00
"version": "1.0"
},
2018-02-03 02:53:40 -06:00
"servers": [
{
2018-02-03 03:09:42 -06:00
"url": "{schema}://{server}/rest",
2018-02-03 02:53:40 -06:00
"variables": {
"schema": {
"default": "https",
2018-02-03 03:06:04 -06:00
"enum": ["https", "http"]
2018-02-03 02:53:40 -06:00
},
2018-02-03 03:06:04 -06:00
"server": {
2018-02-03 03:09:42 -06:00
"default": ""
2018-02-03 02:53:40 -06:00
}
}
}
2016-10-22 17:02:13 -05:00
],
2018-02-03 02:53:40 -06:00
"components": {
"securitySchemes": {
"Bearer": {
"description": "The JWT identifying a previously logged API key",
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
}
}
},
"paths": {
"/v1/authenticate": {
2016-10-22 17:02:13 -05:00
"$ref": "paths/v1_authenticate.json"
},
2017-07-08 05:55:33 -05:00
"/v1/short-codes": {
2016-10-22 17:02:13 -05:00
"$ref": "paths/v1_short-codes.json"
},
"/v1/short-codes/shorten": {
"$ref": "paths/v1_short-codes_shorten.json"
},
"/v1/short-codes/{shortCode}": {
2016-10-22 17:02:13 -05:00
"$ref": "paths/v1_short-codes_{shortCode}.json"
},
"/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"
}
}
}