[ 
https://issues.apache.org/jira/browse/SHINDIG-233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vasu Nori updated SHINDIG-233:
------------------------------

    Attachment: patch_addformat_n_paramsbug

Attached patch file to address this issue

After this patch is in, the URLs can have format in query string

for example: 
  URL before this patch
         http://localhost:8080/social/rest/activities/jane.doe/@self
     returned Atom/XML

  URL after this patch
       http://localhost:8080/social/rest/activities/jane.doe/@self
       or   
http://localhost:8080/social/rest/activities/jane.doe/@self?format=json-c
    will return JSON-c

     http://localhost:8080/social/rest/activities/jane.doe/@self?format=atom
   will return Atom/XML

NOTE that this patch is just a small step towards JSON-c work. not the final 
patch at all..


> Default format for RESTful API should be json-c. 
> -------------------------------------------------
>
>                 Key: SHINDIG-233
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-233
>             Project: Shindig
>          Issue Type: Bug
>          Components: RESTful API (Java)
>            Reporter: Vasu Nori
>         Attachments: patch_addformat_n_paramsbug
>
>
> The current implementation of RESTful API is returning Atom/XML no matter 
> what the "format" specifier is. 
> Two issues:
> 1. Accept format specifier in query string with acceptable values being 
> "atom", "json-c"
> 2. If the format specifier is missing, default to "json-c"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to