Selaa lähdekoodia

Update cloud-api.swagger (#11481)

* Update cloud-api.swagger

Update to match with the current implementation

* Update cloud-api.swagger
master
DanielHabenicht 3 vuotta sitten
vanhempi
commit
1f9a0e91d2
No account linked to committer's email address
1 muutettua tiedostoa jossa 19 lisäystä ja 18 poistoa
  1. 19
    18
      resources/cloud-api.swagger

+ 19
- 18
resources/cloud-api.swagger Näytä tiedosto

85
         200:
85
         200:
86
           description: "successful operation"
86
           description: "successful operation"
87
           schema:
87
           schema:
88
-            $ref: "#/definitions/PhoneNumberList"
88
+            $ref: "#/definitions/PhoneNumberListAnswer"
89
 securityDefinitions:
89
 securityDefinitions:
90
   token:
90
   token:
91
     type: "apiKey"
91
     type: "apiKey"
127
         format: "JID"
127
         format: "JID"
128
         description: "Full JID for the conference OR boolean false if no conference was found (search by ID)"
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
             type: "string"
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
 externalDocs:
150
 externalDocs:
150
   description: "Find out more about the Jitsi Cloud API"
151
   description: "Find out more about the Jitsi Cloud API"

Loading…
Peruuta
Tallenna