mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-20 06:03:37 -06:00
59 lines
1.8 KiB
JSON
59 lines
1.8 KiB
JSON
{
|
|
"get": {
|
|
"tags": [
|
|
"ShortCodes"
|
|
],
|
|
"summary": "Parse short code",
|
|
"description": "Get the long URL behind a short code.",
|
|
"parameters": [
|
|
{
|
|
"name": "shortCode",
|
|
"in": "path",
|
|
"type": "string",
|
|
"description": "The short code to resolve.",
|
|
"required": true
|
|
},
|
|
{
|
|
"$ref": "../parameters/Authorization.json"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "The long URL behind a short code.",
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"longUrl": {
|
|
"type": "string",
|
|
"description": "The original long URL behind the short code."
|
|
}
|
|
}
|
|
},
|
|
"examples": {
|
|
"application/json": {
|
|
"longUrl": "https://shlink.io"
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "Provided shortCode does not match the character set currently used by the app to generate short codes.",
|
|
"schema": {
|
|
"$ref": "../definitions/Error.json"
|
|
}
|
|
},
|
|
"404": {
|
|
"description": "No URL was found for provided short code.",
|
|
"schema": {
|
|
"$ref": "../definitions/Error.json"
|
|
}
|
|
},
|
|
"500": {
|
|
"description": "Unexpected error.",
|
|
"schema": {
|
|
"$ref": "../definitions/Error.json"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|