camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve973 <steve...@gmail.com>
Subject Rest DSL and "no matching path found"
Date Mon, 11 Jul 2016 20:48:04 GMT
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?

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