shlink/docs/swagger/swagger.json

100 lines
2.6 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
2018-12-09 08:18:10 -06:00
"externalDocs": {
"url": "https://shlink.io/api-docs",
"description": "Find more info on how to start using this API here"
},
2018-02-03 02:53:40 -06:00
"servers": [
{
2018-12-09 08:18:10 -06:00
"url": "{scheme}://{host}",
2018-02-03 02:53:40 -06:00
"variables": {
2018-12-09 08:18:10 -06:00
"scheme": {
2018-02-03 02:53:40 -06:00
"default": "https",
2018-02-03 03:06:04 -06:00
"enum": ["https", "http"]
2018-02-03 02:53:40 -06:00
},
2018-12-09 08:18:10 -06:00
"host": {
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": {
"ApiKey": {
"description": "A valid shlink API key",
"type": "apiKey",
"in": "header",
"name": "X-Api-Key"
2018-02-03 02:53:40 -06:00
}
}
},
"tags": [
{
"name": "Short URLs",
"description": "Operations that can be performed on short URLs"
},
{
"name": "Tags",
"description": "Let you handle the list of available tags"
},
{
"name": "Visits",
"description": "Operations to manage visits on short URLs"
},
2018-12-29 07:39:31 -06:00
{
"name": "Monitoring",
"description": "Public endpoints designed to monitor the service"
},
2018-12-09 08:18:10 -06:00
{
"name": "URL Shortener",
"description": "Non-rest endpoints, used to be publicly exposed"
}
],
"paths": {
2019-11-29 12:09:03 -06:00
"/rest/v{version}/short-urls": {
"$ref": "paths/v1_short-urls.json"
},
2019-11-29 12:09:03 -06:00
"/rest/v{version}/short-urls/shorten": {
"$ref": "paths/v1_short-urls_shorten.json"
},
2019-11-29 12:09:03 -06:00
"/rest/v{version}/short-urls/{shortCode}": {
"$ref": "paths/v1_short-urls_{shortCode}.json"
},
2019-11-29 12:09:03 -06:00
"/rest/v{version}/short-urls/{shortCode}/tags": {
"$ref": "paths/v1_short-urls_{shortCode}_tags.json"
2017-07-08 05:55:33 -05:00
},
2019-11-29 12:09:03 -06:00
"/rest/v{version}/tags": {
2017-07-08 05:55:33 -05:00
"$ref": "paths/v1_tags.json"
},
2019-11-29 12:09:03 -06:00
"/rest/v{version}/short-urls/{shortCode}/visits": {
"$ref": "paths/v1_short-urls_{shortCode}_visits.json"
},
2018-12-29 07:39:31 -06:00
"/rest/health": {
"$ref": "paths/health.json"
},
2018-12-09 08:18:10 -06:00
"/{shortCode}": {
"$ref": "paths/{shortCode}.json"
},
2018-12-09 08:43:56 -06:00
"/{shortCode}/track": {
"$ref": "paths/{shortCode}_track.json"
},
"/{shortCode}/qr-code": {
"$ref": "paths/{shortCode}_qr-code.json"
}
}
}