Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

While troubleshooting /posts/{id}/comments/add in order to answer Why am I getting a 404 when trying to post a comment?, it was noticed that the API path in question only responded to POST requests. This is all well and good, especially given that adding a comment is neither idempotent nor safe, which GETs should be (HTTP spec says so). However, there is just one problem:

Nowhere in the documentation is it mentioned that you need to use POST to successfully write.

Knowledge of the HTTP spec (and super deductive skills) told me and commenter Brock Adams the correct remedy ("You need to POST, not GET."), but I really think this should be documented.

share|improve this question
As you know, I have additional concerns about the documentation of the API – Besi Mar 4 '14 at 9:21

You must log in to answer this question.

Browse other questions tagged .