You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "bruno rovagnati (JIRA)" <ji...@apache.org> on 2008/09/15 22:33:44 UTC

[jira] Updated: (SHINDIG-601) Input format detection

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

bruno rovagnati updated SHINDIG-601:
------------------------------------

    Attachment: inputContentType.patch

This patch should add the ?format=foo for the input type second choice in the PHP version

> Input format detection
> ----------------------
>
>                 Key: SHINDIG-601
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-601
>             Project: Shindig
>          Issue Type: Bug
>          Components: RESTful API (Java), RESTful API (PHP)
>            Reporter: Chris Chabot
>         Attachments: inputContentType.patch
>
>
> Currently PHP uses the content_type header to detect the input format. On the other hand Java uses the format query param (?format=foo) for the input format selection.
> Most logical solution seems to be that we both use :
> if ( content type is set)
>    use content_type
> else if (format query param is set)
>    use query param
> else
>   use json
> I *think* that will be what developers would expect :)

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