First time here? Check out the FAQ!
1

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
DLu's avatar
13
DLu
asked 10 years ago

Comments

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!

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 10 years ago
link

Comments

see more comments