incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filipe Manana (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COUCHDB-842) Add JSON POST support to /_session
Date Tue, 03 Aug 2010 21:04:18 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895040#action_12895040
] 

Filipe Manana commented on COUCHDB-842:
---------------------------------------

Hi Jonathan,

The patch looks good.

However, one thing it must have is a test (look into share/www/script/tests/*.js)

I would also prefer if:

- it uses the macro ?b2l instead of binary_to_list/1 (makes code more readable)
- it uses macro ?JSON_DECODE instead of couch_util:json_decode/1

Can you do it?

cheers



> Add JSON POST support to /_session
> ----------------------------------
>
>                 Key: COUCHDB-842
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-842
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.0
>            Reporter: Jonathan D. Knezek
>            Priority: Minor
>         Attachments: 0001-Add-JSON-POST-support-to-_session.patch
>
>
> With this patch the /_session POST handler will accept application/json content in the
format of {"name":"myname","password":"mypass"}

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


Mime
View raw message