I have a route that looks like this:
/foobar/123/2
And I would like to use all three parameters to get a single object so that I can use something like this:
@Path("/{type}/{id}/{version}")
public Response getEntity(Entity entity);
Instead of:
@Path("/{type}/{id}/{version}")
public Response getEntity(@PathParam("type") Type type, @PathParam("id") Long entityId, @PathParam("version") Long version);
ParamConverter
looks promising, however it can only handle a single String
not three. Anything else I could try?
I believe you are out of luck.
From JSR-000339 "Java[TM] API for RESTful Web Services 2.0 Final Release for evaluation "