[
https://issues.apache.org/jira/browse/SHINDIG-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594598#action_12594598
]
Cassie Doll commented on SHINDIG-233:
-------------------------------------
Okay, we can change the format name if the spec changes it, that shouldn't be a
problem.
Vasu - I made a small change to your patch. I changed the way you retrieved the
"format" param from the url to be the same way you retrieve the other params
(uid, pid etc) from the url by using getParameter instead of getParameterNames.
This eliminates several lines of code.
> 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.