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 2023/01/18 13:34:00 UTC

[jira] [Commented] (CAMEL-18944) REST YAML does not work in Spring Boot

    [ https://issues.apache.org/jira/browse/CAMEL-18944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17678233#comment-17678233 ] 

Claus Ibsen commented on CAMEL-18944:
-------------------------------------

We also seem to have 2 endpoints logged with / or no-slash

2023-01-18 14:32:23.277  INFO 57255 --- [           main] che.camel.main.http.VertxHttpServer : HTTP endpoints summary
2023-01-18 14:32:23.277  INFO 57255 --- [           main] che.camel.main.http.VertxHttpServer :     http://0.0.0.0:8080 (POST)
2023-01-18 14:32:23.278  INFO 57255 --- [           main] che.camel.main.http.VertxHttpServer :     http://0.0.0.0:8080/ (POST)

> 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)