mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-29 17:39:03 +03:00
Improved swagger docs for QR code endpoint
This commit is contained in:
parent
d6e155d874
commit
01e06f0503
1 changed files with 5 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
||||||
"URL Shortener"
|
"URL Shortener"
|
||||||
],
|
],
|
||||||
"summary": "Short URL QR code",
|
"summary": "Short URL QR code",
|
||||||
"description": "Generates a QR code image pointing to a short URL",
|
"description": "Generates a QR code image pointing to a short URL.<br />Since this is not an API endpoint but an image one, when an invalid value is provided for any of the query params, they will fall to their default values instead of throwing an error.",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "shortCode",
|
"name": "shortCode",
|
||||||
|
@ -35,7 +35,8 @@
|
||||||
"required": false,
|
"required": false,
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["png", "svg"]
|
"enum": ["png", "svg"],
|
||||||
|
"default": "png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -56,7 +57,8 @@
|
||||||
"required": false,
|
"required": false,
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["L", "M", "Q", "H"]
|
"enum": ["L", "M", "Q", "H"],
|
||||||
|
"default": "L"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue