Closed agentgt closed 3 months ago
@Path("/simple") public class SimpleController { @POST("/test") public String post(@Param(value = { ParamSource.QUERY, ParamSource.FORM }, name = "client_id") UUID clientId) { return "hello"; } }
Notice how clientId is actually "client_id"
Will generate code:
public String post(io.jooby.Context ctx) { return this.factory.apply(ctx).post(ctx.lookup("clientId", io.jooby.ParamSource.QUERY, io.jooby.ParamSource.FORM).to(java.util.UUID.class)); }
clientId is being used on ctx.lookup
clientId
ctx.lookup
@jknack Happy to do a PR but because of 4th of July I cannot get a PR till probably next week.
Notice how clientId is actually "client_id"
Will generate code:
clientId
is being used onctx.lookup