updated docs

This commit is contained in:
Bernhard B
2020-10-05 18:25:42 +02:00
parent d4e27e4882
commit 023d10f648

View File

@@ -169,18 +169,8 @@ var doc = `{
}, },
"/v1/qrcodelink": { "/v1/qrcodelink": {
"get": { "get": {
"parameters": [ "description": "test",
{
"in": "query",
"name": "device_name",
"type": "string",
"required": true,
"description": "The name of the device is being linked. This name will be shown in Signal as device."
}
],
"description": "Returns a QR-Code image. In case of an error a JSON object will be returned. Due to security reason of Signal, the provided QR-Code will change with each request.",
"produces": [ "produces": [
"image/png".
"application/json" "application/json"
], ],
"tags": [ "tags": [
@@ -189,14 +179,9 @@ var doc = `{
"summary": "Link device and generate QR code.", "summary": "Link device and generate QR code.",
"responses": { "responses": {
"200": { "200": {
"description": "Ok", "description": "Image",
"content":
"image"
},
"400": {
"description": "Bad Request",
"schema": { "schema": {
"$ref": "#/definitions/api.Error" "type": "string"
} }
} }
} }