mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 23:54:22 +01:00
updated docs
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user