You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/11/22 08:37:00 UTC

[jira] [Assigned] (CAMEL-18628) rest-dsl to support autoStartup

     [ https://issues.apache.org/jira/browse/CAMEL-18628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-18628:
-----------------------------------

    Assignee: Claus Ibsen

> rest-dsl to support autoStartup
> -------------------------------
>
>                 Key: CAMEL-18628
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18628
>             Project: Camel
>          Issue Type: New Feature
>          Components: came-core
>    Affects Versions: 3.19.0
>            Reporter: Tuomas Palenius
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.20.0
>
>
> Allowing to define _autoStartup_ in the rest-dsl:
> 1) On the top-level:
>  
> {code:java}
> rest("/api")
>   .autoStartup(true)
>   .get("...")
>   .get("..."){code}
>  
> Would allow to create chunks of apis that could be enabled/disabled from the configuration (my use-case). The workaround now is to define the endpoints as plain routes.
> 2) On a particular verb-level:
> {code:java}
> rest("/api")
>   .get("/hello").autoStartup(false).to(...){code}
> Would allow to enable/disable a single route by using rest-dsl.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)