Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When POST posts to channel, response is 204 (No Content) rather than 201 (Created) #111

Open
scholary-tim opened this issue Jun 6, 2013 · 1 comment
Labels
Milestone

Comments

@scholary-tim
Copy link

Replication Steps:
Using a REST client (e.g. RESTClient in Firefox), send the following POST request (xml):

Headers: Basic Authentication [USERNAME/PASSWORD]
URL: http://api.buddycloud.org/[USERNAME]@buddycloud.org/content/posts
Body:

<entry xmlns="http://www.w3.org/2005/Atom">
  <content>Test post via RESTClient in FF 21.</content>
</entry>

Expected Outcome:
Status Code: 201 (Created)
Message posted to channel.

Actual Outcome:
Status Code: 204 (No Content)
Message posted to channel.

Reading http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html, it looks like 204 may well be fine, if so, I'd be happy to update https://buddycloud.org/wiki/buddycloud_HTTP_API#.2F:channel.2Fcontent.2F:node - Thanks.

@scholary-tim
Copy link
Author

Following clarification with @lloydwatkin, it's believed this is an issue, and 201 (Created) should be returned instead. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant