First time here? Check out the FAQ!

Revision history  [back]

Adding Answer Functionality to the API

Would the maintainers be open to a pull request that implemented additional functionality for the AskBot API?

Namely, changing /api/v1/questions/<question_id>/ to return

"answers": [5999, 60001]

instead of

"answer_count": 2

and then have an additional endpoint of /api/v1/answers/<answer_id>/ that returns the text of the answer, its vote count and whether it has been accepted or not.