@@ -194,6 +194,14 @@ export class ApiEndpointDocumentationElement extends AmfHelperMixin(LitElement)
194
194
* If true, the server selector custom base URI option is rendered
195
195
*/
196
196
allowCustomBaseUri : { type : Boolean } ,
197
+ /**
198
+ * Adds a servers to async API
199
+ *
200
+ * @param {string } url - The URL of the server.
201
+ * @param {object } [description] - An object containing a string `description` property.
202
+ */
203
+ servers : { type :Array } ,
204
+ _servers : { type :Array } ,
197
205
} ;
198
206
}
199
207
@@ -299,6 +307,20 @@ export class ApiEndpointDocumentationElement extends AmfHelperMixin(LitElement)
299
307
this . requestUpdate ( 'server' , old ) ;
300
308
}
301
309
310
+ get servers ( ) {
311
+ return this . _servers ;
312
+ }
313
+
314
+ set servers ( value ) {
315
+ const old = this . _servers ;
316
+ /* istanbul ignore if */
317
+ if ( old === value ) {
318
+ return ;
319
+ }
320
+ this . _servers = value ;
321
+ this . requestUpdate ( 'servers' , old ) ;
322
+ }
323
+
302
324
constructor ( ) {
303
325
super ( ) ;
304
326
this . _scrollHandler = this . _scrollHandler . bind ( this ) ;
@@ -961,6 +983,7 @@ export class ApiEndpointDocumentationElement extends AmfHelperMixin(LitElement)
961
983
< api-url
962
984
.amf ="${ this . amf } "
963
985
.server ="${ this . server } "
986
+ .servers ="${ this . servers } "
964
987
.endpoint ="${ this . endpoint } "
965
988
.apiVersion ="${ this . apiVersion } "
966
989
.baseUri ="${ this . baseUri } "
@@ -1022,6 +1045,7 @@ export class ApiEndpointDocumentationElement extends AmfHelperMixin(LitElement)
1022
1045
data-operation-id ="${ item [ '@id' ] } "
1023
1046
.amf ="${ amf } "
1024
1047
.server ="${ server } "
1048
+ .servers ="${ this . servers } "
1025
1049
.endpoint ="${ endpoint } "
1026
1050
.method ="${ item } "
1027
1051
.narrow ="${ narrow } "
0 commit comments