jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: [jax-rs-spec users] dispatch by query param too?

From: Santiago Pericas-Geertsen <Santiago.PericasGeertsen_at_oracle.com>
Date: Mon, 3 Mar 2014 09:39:45 -0500

On Mar 1, 2014, at 10:40 AM, Bill Burke <bburke_at_redhat.com> wrote:

> I've been asked by users and you see it in OAuth 2.0 with "grant_type", but would it be interesting to add the ability to dispatch by query param too?
>
> @Path("/token-service",
> query = {
> @QueryValue(name="grant_type",
> value="authorization_code")
> })
> @GET
> public Response grantAuthorizationCode(...) {

 Seems like a reasonable and useful extension to the matching algorithm.

-- Santiago