2018-12-09 15:43:56 +01:00
|
|
|
{
|
|
|
|
"get": {
|
2019-08-09 18:12:33 +02:00
|
|
|
"deprecated": true,
|
2018-12-09 15:43:56 +01:00
|
|
|
"operationId": "shortUrlPreview",
|
|
|
|
"tags": [
|
|
|
|
"URL Shortener"
|
|
|
|
],
|
|
|
|
"summary": "Short URL preview image",
|
|
|
|
"description": "Returns the preview of the page behind a short URL",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "shortCode",
|
|
|
|
"in": "path",
|
|
|
|
"description": "The short code to resolve.",
|
|
|
|
"required": true,
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "Image in PNG format",
|
|
|
|
"content": {
|
|
|
|
"image/png": {
|
|
|
|
"schema": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "binary"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"500": {
|
|
|
|
"description": "Unexpected error.",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "../definitions/Error.json"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|