Answer the question
In order to leave comments, you need to log in
How to pass key and certificate to swagger-ui?
There is an application on Spring Boot. Connected swagger (springfox). For it to work properly on my stand, I need to transfer the key and certificate.
If I use curl, then the request looks like:
curl --key /opt/1.key --cert /opt/2.crt https://www.website.com:8000/
new Docket(...)
.globalOperationParameters(
Arrays.asList(new ParameterBuilder()
.name("header")
.description("Description of header")
.modelRef(new ModelRef("string"))
.parameterType("header")
.required(true)
.build()))
path parameters, пример /users/{id}
query parameters, пример /users?role=admin
header parameters, пример X-MyHeader: Value
cookie parameters, пример Cookie: debug=0
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question