Question-related REST APIs

The ability to ask a question of the community is an essential part of the AnswerHub user experience. We designed this section to guide you in creating API requests that involve questions.

Documentation Related to Questions

📘

Note on questionIds:

  • While using the suggested request methods, remember all questions are also nodes and, in almost all cases, requests that work with nodes will also work with questions.

    • Please refer to the node section if you want to review the details relevant to these requests.
  • Remember: All concrete sub-types of node (questions, answers, or comments) share the same pool of assigned identifiers.

    • You can find the questionId in the original question URL after /questions/. For example: http://localhost:8888/qa/questions/16/what-is-ok-short-for.html (The questionId in this example is 16).
  • You can also find a Question ID by making a request to retrieve a list of all the questions.