Hello Raji,
yes, Jersey supports WADL - its generated for each app by default and it
is accessible at <context-root>/application.wadl or its returned in
response to OPTIONS request.
Problem in JSON here is obvious - JSON does not have anything like JSON
schema yet, so we can't really specify much about exposed/accepted
entity. What you could do is use JAXB annotations and let Jersey
generate XML Schema and use it somehow..
Regards,
Pavel
On 11/1/11 8:19 AM, rajim17 wrote:
> Hi,
> Is there a way we can expose our resources which are in JSON format in
> REST world ?
> I heard about WADL, but it predominantly explains about XML schema.
>
> Does jersey supports WADL ? if how JSON format resources can be exposed.?
>
> Thanks
> Raji
>
> --
> View this message in context: http://jersey.576304.n2.nabble.com/Exposing-JSON-schema-resource-in-REST-tp6950806p6950806.html
> Sent from the Jersey mailing list archive at Nabble.com.
>