cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: .json restriction or identify
Date Sat, 10 Dec 2011 17:19:26 GMT
Hi
On 09/12/11 22:01, eswarup wrote:
> Hi,
> We've case where .json is getting considered as JSON output which either I
> would like to restrict it or be able to identify it using one of  Message
> properties
>
> for e.g.
>   @Path("/getProfile/{guid}/")
>
> /getProfile/madonna.json treats it as JSON output and sets guid=madonna.
>
> I would prefer to use _type=json for json output formats.
> Is there a way I can restrict this or ignore .json as special syntax and
> treat guid=madonna.json
>

I'm sorry but I've got a bit confused.
Are you saying that you do not need JSON returned when querying

/getProfile/madonna.json

but do need JSON in all other cases ?

Do you expect /getProfile/bar.json return JSON, where bar is some other 
profile id ?

Cheers, Sergey


> Thanks,
>
> Swarup
>
>

Mime
View raw message