[
https://issues.apache.org/jira/browse/CAMEL-18944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17678336#comment-17678336
]
Claus Ibsen commented on CAMEL-18944:
-------------------------------------
1.1 yes
1.2 yes
2 yes
I run with
{code}
- rest-configuration:
component: "platform-http"
- rest:
id: rest-dc6e
post:
- id: post-248c
consumes: application/json
produces: application/json
to: direct:demo
# path: foo
- route:
id: demo
from:
uri: direct:demo
id: from-e15c
steps:
- log:
message: ${body}
id: log-a55d
{code}
> REST YAML does not work in Spring Boot
> --------------------------------------
>
> Key: CAMEL-18944
> URL: https://issues.apache.org/jira/browse/CAMEL-18944
> Project: Camel
> Issue Type: Bug
> Components: camel-spring-boot
> Affects Versions: 3.20.1
> Reporter: Marat Gubaidullin
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 3.20.2, 3.21.0, 4.0
>
>
> The following YAML fails when run with Spring Boot
> {code:java}
> - rest:
> id: rest-dc6e
> post:
> - id: post-248c
> consumes: application/json
> produces: application/json
> to: direct:demo
> - route:
> id: demo
> from:
> uri: direct:demo
> id: from-e15c
> steps:
> - log:
> message: ${body}
> id: log-a55d
> {code}
> command to call service
> {code:java}
> curl -X POST -H "Content-Type: application/json" --data
> '{"id":"666","address":"666 Sin Street, Holy City"}' http://0.0.0.0:8080
> {code}
> REST Configuration component does not change anything
--
This message was sent by Atlassian Jira
(v8.20.10#820010)