@@ -248,6 +248,8 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
248248 redirectUri,
249249 eventsTarget,
250250 baseUri,
251+ hideServerSelector,
252+ hideCustomServer,
251253 noDocs
252254 } = this ;
253255 return html `< api-request-panel
@@ -262,6 +264,8 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
262264 .allowCustom ="${ allowCustom } "
263265 .allowDisableParams ="${ allowDisableParams } "
264266 .allowHideOptional ="${ allowHideOptional } "
267+ .hideServerSelector ="${ hideServerSelector } "
268+ .hideCustomServer ="${ hideCustomServer } "
265269 .baseUri ="${ baseUri } "
266270 .noDocs ="${ noDocs } "
267271 .eventsTarget ="${ eventsTarget } ">
@@ -281,6 +285,7 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
281285 narrow,
282286 scrollTarget,
283287 redirectUri,
288+ hideServerSelector,
284289 baseUri
285290 } = this ;
286291 return html `< api-documentation
@@ -294,9 +299,12 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
294299 .noTryIt ="${ _noTryItValue } "
295300 .baseUri ="${ baseUri } "
296301 .redirectUri ="${ redirectUri } "
302+ .hideServerSelector ="${ hideServerSelector } "
297303 .scrollTarget ="${ scrollTarget } "
298304 @api-navigation-selection-changed ="${ this . _apiNavigationOcurred } "
299- > </ api-documentation > ` ;
305+ >
306+ < slot name ="custom-base-uri " slot ="custom-base-uri "> </ slot >
307+ </ api-documentation > ` ;
300308 }
301309
302310 _navigationTemplate ( ) {
@@ -551,6 +559,16 @@ export class ApiConsole extends AmfHelperMixin(LitElement) {
551559 * **This is an experimental option and may dissapear without warning.**
552560 */
553561 rearrangeEndpoints : { type : Boolean } ,
562+ /**
563+ * Optional property to set
564+ * If true, the server selector is not rendered
565+ */
566+ hideServerSelector : { type : Boolean } ,
567+ /**
568+ * Optional property to set
569+ * If true, the server selector custom option is not rendered
570+ */
571+ hideCustomServer : { type : Boolean } ,
554572 } ;
555573 }
556574
0 commit comments