shlink/docs/swagger/swagger.json

87 lines
2.2 KiB
JSON
Raw Normal View History

{
2018-02-03 11:53:40 +03:00
"openapi": "3.0.0",
"info": {
"title": "Shlink",
"description": "Shlink, the self-hosted URL shortener",
2017-07-08 13:55:33 +03:00
"version": "1.0"
},
2018-02-03 11:53:40 +03:00
"servers": [
{
2018-02-03 12:09:42 +03:00
"url": "{schema}://{server}/rest",
2018-02-03 11:53:40 +03:00
"variables": {
"schema": {
"default": "https",
2018-02-03 12:06:04 +03:00
"enum": ["https", "http"]
2018-02-03 11:53:40 +03:00
},
2018-02-03 12:06:04 +03:00
"server": {
2018-02-03 12:09:42 +03:00
"default": ""
2018-02-03 11:53:40 +03:00
}
}
}
2016-10-23 01:02:13 +03:00
],
2018-02-03 11:53:40 +03:00
"components": {
"securitySchemes": {
"ApiKey": {
"description": "A valid shlink API key",
"type": "apiKey",
"in": "header",
"name": "X-API-KEY"
},
2018-02-03 11:53:40 +03:00
"Bearer": {
"description": "**[Deprecated]** The JWT identifying a previously authenticated API key",
2018-02-03 11:53:40 +03:00
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
}
}
},
"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"
},
{
"name": "Authentication",
"description": "Authentication-related endpoints"
}
],
"paths": {
"/v1/short-urls": {
"$ref": "paths/v1_short-urls.json"
},
"/v1/short-urls/shorten": {
"$ref": "paths/v1_short-urls_shorten.json"
},
"/v1/short-urls/{shortCode}": {
"$ref": "paths/v1_short-urls_{shortCode}.json"
},
"/v1/short-urls/{shortCode}/tags": {
"$ref": "paths/v1_short-urls_{shortCode}_tags.json"
2017-07-08 13:55:33 +03:00
},
"/v1/tags": {
"$ref": "paths/v1_tags.json"
},
"/v1/short-urls/{shortCode}/visits": {
"$ref": "paths/v1_short-urls_{shortCode}_visits.json"
},
"/v1/authenticate": {
"$ref": "paths/v1_authenticate.json"
}
}
}