mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-24 21:58:40 +03:00
36 lines
1 KiB
JSON
36 lines
1 KiB
JSON
{
|
|
"get": {
|
|
"operationId": "shortUrl",
|
|
"tags": [
|
|
"URL Shortener"
|
|
],
|
|
"summary": "Short URL",
|
|
"description": "Represents a short URL. Tracks the visit and redirects tio the corresponding long URL",
|
|
"parameters": [
|
|
{
|
|
"name": "shortCode",
|
|
"in": "path",
|
|
"description": "The short code to resolve.",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"302": {
|
|
"description": "Visit properly tracked and redirected"
|
|
},
|
|
"500": {
|
|
"description": "Unexpected error.",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "../definitions/Error.json"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|