camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <ch0...@gmail.com>
Subject Re: Rest DSL and "no matching path found"
Date Tue, 12 Jul 2016 04:43:42 GMT
Hi Steve,

I suggest that first, you verify the endpoint registered by Camel when the
routes have been started, curl it and that you perform the same test using
Jetty component.

According to the REST Defintion, you try to reach the URL

http://localhost:8181/timesheet/123 where 123 is a timesheetId

Regards,

Charles

On Mon, Jul 11, 2016 at 10:48 PM, Steve973 <steve973@gmail.com> wrote:

> I have my rest dsl route like this:
>
> restConfiguration().component("undertow").host("localhost").port("8181");
> rest("/timesheet")
>         .get("/{timesheetId}").produces(MediaType.TEXT_PLAIN)
>         .to("bean:timesheetService?method=getTimesheetById")
>         .put("/{timesheetId}").produces(MediaType.TEXT_PLAIN)
>         .to("bean:timesheetService?method=updateTimesheet");
>
> It's odd because the "put" works just fine, but when I try using the "get",
> it responds with a 404 error and "no matching path found".  What am I doing
> wrong?
>



-- 
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message