fixed bug in search endpoint

* when multiple accounts are registered, signal-cli expects the account
  specified with '-a'. In order to stay backwards compatible, the search
  endpoint was extended with an optional number parameter. i.e:
  '/search/{number}'. In case only one account is registered, the number
  parameter can be omitted.

see #369
This commit is contained in:
Bernhard B
2023-05-26 18:09:06 +02:00
parent d8ded891a1
commit 4dc19813b6
6 changed files with 27 additions and 3 deletions

View File

@@ -1289,6 +1289,12 @@ var doc = `{
],
"summary": "Check if one or more phone numbers are registered with the Signal Service.",
"parameters": [
{
"type": "string",
"description": "Registered Phone Number",
"name": "number",
"in": "path"
},
{
"type": "array",
"items": {