jcordes73 opened a new issue, #5394:
URL: https://github.com/apache/camel-k/issues/5394

   ### Requirement
   
   Right now the REST DSL doesn't expose the Open API spec which in Apache 
Camel can be done by using the restComponent and apiContextPath.
   
   This is required for example when using the 3scale trait to process the Open 
API specification when creating a product (f.e. when using the service 
discovery mechanism)
   
   ### Problem
   
   There is a workaround by creating a RouteBuilder with a restConfiguration 
which looks like this:
   
   import org.apache.camel.builder.RouteBuilder;
   
   public class RestOpenAPIRouteBuilder extends RouteBuilder {
   
       public void configure() throws Exception {
           restConfiguration().apiContextPath("/openapi");
       }
   }
   
   Also a dependency to camel:openapi-java needs to be added
   
   ### Proposal
   
   In order to have an easy way to expose the Open API specification there 
should be an additional configuration or trait option to enable it.
   
   ### Open questions
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to