You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/11/01 19:57:27 UTC

[GitHub] [camel-quarkus] davsclaus opened a new issue #3251: Camel Rest DSL - Expose Rest DSL services to quarkus openapi

davsclaus opened a new issue #3251:
URL: https://github.com/apache/camel-quarkus/issues/3251


   Quarkus can expose its REST servcices to swagger ui
   https://quarkus.io/guides/openapi-swaggerui
   
   We have something similar for camel on spring boot via camel-springdoc-starter
   https://github.com/apache/camel-spring-boot/tree/main/components-starter/camel-springdoc-starter
   
   This code that discovers the Camel Rest DSL and expose that, can be inspiration for something similar to camel-quarkus.
   


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] navinyashende commented on issue #3251: Camel Rest DSL - Expose Rest DSL services to quarkus openapi

Posted by GitBox <gi...@apache.org>.
navinyashende commented on issue #3251:
URL: https://github.com/apache/camel-quarkus/issues/3251#issuecomment-1011285128


   Does quarkus support camel rest dsl in xml? 


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] davsclaus commented on issue #3251: Camel Rest DSL - Expose Rest DSL services to quarkus openapi

Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #3251:
URL: https://github.com/apache/camel-quarkus/issues/3251#issuecomment-1011372494


   Yeah its general Camel from the XML DSL


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] zhfeng commented on issue #3251: Camel Rest DSL - Expose Rest DSL services to quarkus openapi

Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #3251:
URL: https://github.com/apache/camel-quarkus/issues/3251#issuecomment-1011903115


   I got some time to investigate ```quarkus-smallrye-openapi``` and it seems that it leverages the ```AnnotationScannerExtension``` to scan ```JAXRS```, ```Spring```, ```Vert.x``` and generate the ```OpenAPI``` data model. So all of these happen at the build time.  But as far as I know, we can only produce the ```CamelContext```  and get the rest services at static init.
   
   And I think we can use ```AddToOpenAPIDefinitionBuildItem``` to expose the DSL services but I wonder how we can get them at the build time ? especially if it get from the XML DSL.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] jamesnetherton closed issue #3251: Camel Rest DSL - Expose Rest DSL services to quarkus openapi

Posted by GitBox <gi...@apache.org>.
jamesnetherton closed issue #3251:
URL: https://github.com/apache/camel-quarkus/issues/3251


   


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] zhfeng commented on issue #3251: Camel Rest DSL - Expose Rest DSL services to quarkus openapi

Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #3251:
URL: https://github.com/apache/camel-quarkus/issues/3251#issuecomment-1011916771


   Thanks @jamesnetherton - I will take a look.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] ppalaga commented on issue #3251: Camel Rest DSL - Expose Rest DSL services to quarkus openapi

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #3251:
URL: https://github.com/apache/camel-quarkus/issues/3251#issuecomment-1011936060


   Yes, what we do in csimple is rather a fragile misuse of JAXB annotations on the route model classes. A solid solution would require a proper build time route definition introspection API - see https://issues.apache.org/jira/browse/CAMEL-16212


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-quarkus] jamesnetherton commented on issue #3251: Camel Rest DSL - Expose Rest DSL services to quarkus openapi

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on issue #3251:
URL: https://github.com/apache/camel-quarkus/issues/3251#issuecomment-1011915334


   > I wonder how we can get them at the build time
   
   Maybe take a look at how the `csimple` extension does things. It processes routes at build time to extract the csimple expressions from XML. In theory a similar thing could be done for the REST DSL bits. Not sure if it'd be 100% reliable though... 


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org