cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
801
Views
0
Helpful
3
Replies

yanger swagger: option for https BaseURL

rogaglia
Cisco Employee
Cisco Employee

Hi,

I am using yanger to create the swagger documentation. I do not find a way to force the BaseURL to be https and not http and I need to change that by script.

 

Am I missing anything?

 

Roque

 

3 Replies 3

perander
Cisco Employee
Cisco Employee
What are you using together with pyang? I can't find any default option or plugin to generate Swagger with it.

Ups type. I meant Yanger.

 

I am interested in changing a couple of things:

- force https (less priority as I can simply manually edit one field BaseUrl in Postman)

- Change Authentication mechanism. I would like to set it to "Inherit auth from parent" in all API calls, so I set the credentials in a single place.

 

Do you know if either of them are possible?

 

 

 

The available schemes are hard coded to the list ["http", "https"] in Yanger. Does it help manually editing the "schemes" in the Swagger file, i.e setting it to only ["https"]?

 

Regarding inheriting auth from parent, this seems to be a Postman feature/option and not specific to Swagger? I don't know about your use case, but perhaps you can set up external token authentication for RESTCONF?