Ask Your Question
1

Adding Answer Functionality to the API

asked 2014-11-21 16:41:17 -0500

DLu gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-11-21 17:31:13 -0500

Evgeny gravatar image

Yes, but if the field is replaced, the api can't stay v1, perhaps we could have a "dev" version of API where changes can be accumulated until they can be frozen in a new static version.

The field could also be added without the change of the API version.

It should probably should be named answer_ids.

The endpoint answers/<answer_id>/ is a good idea.

Sure, please implement this and make a pull request. Thank you!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-11-21 16:41:17 -0500

Seen: 412 times

Last updated: Nov 21 '14