[
https://issues.apache.org/jira/browse/CAMEL-11299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-11299.
---------------------------------
Resolution: Fixed
> Camel Rest DSL Does Not Creating OPTIONS routes for defined routes
> ------------------------------------------------------------------
>
> Key: CAMEL-11299
> URL: https://issues.apache.org/jira/browse/CAMEL-11299
> Project: Camel
> Issue Type: Bug
> Components: camel-jetty, camel-servlet
> Affects Versions: 2.19.0
> Environment: Windows 7 JDK 8 Spring Boot 1.5.3
> Reporter: LEONARDO OLIVEIRA
> Assignee: Claus Ibsen
> Fix For: 2.19.1, 2.20.0
>
>
> Camel does not generating the options answer for all routes defined using
> component servlet, ex:
> {code}
> restConfiguration().component("servlet").bindingMode(RestBindingMode.json)
> rest("/v1/customers")
> .get()
> .produces("application/json")
> .to("direct:listAll")
> .get("/{id}")
> .produces("application/json")
> .to("direct:findOne")
> {code}
> For /v1/customers the request OPTIONS return 200 OK but for /v1/customers/1
> the request OPTIONS return 404 not found.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)