Re: rest-swagger. Request swagger spec with auth by http

2020-03-25 Thread Zoran Regvart
Hi Mikhail, for Swagger support in Camel we use swagger-parser[1] which transparently supports loading both JSON and YAML. I would encourage you to try the OpenAPI support we have, that uses apicurio-data-models[2] which I find to be much more reliable and easier to use. You also get OpenAPI 3 supp

Re: rest-swagger. Request swagger spec with auth by http

2020-03-24 Thread Mikhail Lukyanov
Thank you, Zoran. I understand auth doesn't need in this case. Can you answer another question? Is rest-swagger component supports only JSON swagger spec and doesn't support YAML? пн, 23 мар. 2020 г. в 13:57, Zoran Regvart : > Hi Mikhail, > I must say that that's a very strange requirement. Aut

Re: rest-swagger. Request swagger spec with auth by http

2020-03-23 Thread Zoran Regvart
Hi Mikhail, I must say that that's a very strange requirement. Authentication is just one of the ways this would fail; it could also fail if the service hosting the OpenAPI document is unavailable. I'd approach this problem differently by downloading the OpenAPI document and bundling it within the

rest-swagger. Request swagger spec with auth by http

2020-03-20 Thread Mikhail Lukyanov
Hello, everyone Is it possible to somehow get the swagger specification by a HTTP request from a resource that requires authorization? Now when I start the route I get an error Caused by: org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: rest-swagger:// htt