05-06-2020 03:07 PM - edited 05-09-2020 08:22 AM
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
05-07-2020 02:50 AM
05-09-2020 08:21 AM
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?
05-11-2020 12:52 AM
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?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide