mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-18 09:02:04 +03:00
45 lines
1.3 KiB
JSON
45 lines
1.3 KiB
JSON
|
{
|
||
|
"get": {
|
||
|
"operationId": "trackShortUrl",
|
||
|
"tags": [
|
||
|
"URL Shortener"
|
||
|
],
|
||
|
"summary": "Short URL tracking pixel",
|
||
|
"description": "Generates a 1px transparent image which can be used to track emails with a short URL",
|
||
|
"parameters": [
|
||
|
{
|
||
|
"name": "shortCode",
|
||
|
"in": "path",
|
||
|
"description": "The short code to resolve.",
|
||
|
"required": true,
|
||
|
"schema": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "Image in GIF format",
|
||
|
"content": {
|
||
|
"image/gif": {
|
||
|
"schema": {
|
||
|
"type": "string",
|
||
|
"format": "binary"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"500": {
|
||
|
"description": "Unexpected error.",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
|
"$ref": "../definitions/Error.json"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|