Kaynağa Gözat

Update cloud-api.swagger (#11481)

* Update cloud-api.swagger

Update to match with the current implementation

* Update cloud-api.swagger
master
DanielHabenicht 3 yıl önce
ebeveyn
işleme
1f9a0e91d2
No account linked to committer's email address
1 değiştirilmiş dosya ile 19 ekleme ve 18 silme
  1. 19
    18
      resources/cloud-api.swagger

+ 19
- 18
resources/cloud-api.swagger Dosyayı Görüntüle

@@ -85,7 +85,7 @@ paths:
85 85
         200:
86 86
           description: "successful operation"
87 87
           schema:
88
-            $ref: "#/definitions/PhoneNumberList"
88
+            $ref: "#/definitions/PhoneNumberListAnswer"
89 89
 securityDefinitions:
90 90
   token:
91 91
     type: "apiKey"
@@ -127,24 +127,25 @@ definitions:
127 127
         format: "JID"
128 128
         description: "Full JID for the conference OR boolean false if no conference was found (search by ID)"
129 129
 
130
-  PhoneNumberList:
131
-    description: "List of dial in numbers for the conference."
132
-    type: "array"
133
-    items:
134
-        type: "object"
135
-        properties:
136
-          countryCode:
137
-            type: "string"
138
-            description: "ISO 3166-1 country code. Alpha-2 supported."
139
-          default:
140
-            type: "boolean"
141
-            description: "Whether this number is the default one to show. Optional."
142
-          formattedNumber:
130
+  PhoneNumberListAnswer:
131
+    description: "Answer with Phone number list and additional information"
132
+    type: "object"
133
+    properties: 
134
+      message: 
135
+        type: "string"
136
+        description: "General message"
137
+      numbersEnabled: 
138
+        type: "boolean"
139
+        description: "Determines if the numbers are available"
140
+      numbers:
141
+        type: object
142
+        additionalProperties:
143
+          type: "array"
144
+          items:
143 145
             type: "string"
144
-            description: "The formatted telephone number to show."
145
-          tollFree:
146
-            type: "boolean"
147
-            description: "Whether the number is toll free number."
146
+        example:
147
+          US: ["+1.123.456.7890"]
148
+          UK: ["+44.123.456.7890"]
148 149
 
149 150
 externalDocs:
150 151
   description: "Find out more about the Jitsi Cloud API"

Loading…
İptal
Kaydet