From 3ab47ff96ced0964e2142641886e84423f3ffe4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=8F=D0=BD=20=D0=9C=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Wed, 4 May 2022 11:13:20 -0500 Subject: [PATCH] fix: Updates cloud-api.swagger phoneNumberList endpoint. --- resources/cloud-api.swagger | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/resources/cloud-api.swagger b/resources/cloud-api.swagger index 14794afc6..b931af257 100644 --- a/resources/cloud-api.swagger +++ b/resources/cloud-api.swagger @@ -85,6 +85,7 @@ paths: 200: description: "successful operation" schema: + type: array $ref: "#/definitions/PhoneNumberListAnswer" securityDefinitions: token: @@ -130,22 +131,16 @@ definitions: PhoneNumberListAnswer: description: "Answer with Phone number list and additional information" type: "object" - properties: - message: - type: "string" - description: "General message" - numbersEnabled: - type: "boolean" - description: "Determines if the numbers are available" - numbers: - type: object - additionalProperties: - type: "array" - items: - type: "string" - example: - US: ["+1.123.456.7890"] - UK: ["+44.123.456.7890"] + properties: + countryCode: + type: string + formattedNumber: + type: string + tollFree: + type: boolean + example: + {"countryCode":"US","tollFree":false,"formattedNumber":"+1 123-456-7890"} + {"countryCode":"UK","tollFree":true,"formattedNumber":"+44 123 456 7890"} externalDocs: description: "Find out more about the Jitsi Cloud API"