couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From João Barbosa (JIRA) <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1685) POSTing multipart/related to a database doesn't create a document
Date Wed, 06 Mar 2013 13:26:13 GMT

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

João Barbosa commented on COUCHDB-1685:
---------------------------------------

Yes, It should create the document, create the attachments if there are mime parts in the
request body and assign an id to the document and create the revision.

by the way, PUT /db/id works
                
> POSTing multipart/related to a database doesn't create a document
> -----------------------------------------------------------------
>
>                 Key: COUCHDB-1685
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1685
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: João Barbosa
>
> POST application/json to a database creates a document and assigns an id. It's an atomic
operation.
> But POST to a database with a multipart/related doesn't. The response error is:
> {
>   "error":"bad_content_type",
>   "reason":"Content-Type must be application/json"
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message