First time here? Check out the FAQ!
1

Adding Answer Functionality to the API

  • retag add tags

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.

DLu's avatar
13
DLu
asked 2014-11-21 16:41:17 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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!

Evgeny's avatar
13.2k
Evgeny
answered 2014-11-21 17:31:13 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments