LibraryH3lp supports cookie-based authentication. To learn more, you can read the details on authentication.
Requests are served over HTTPS. To ensure data privacy, unencrypted HTTP is not supported.
An FAQ question instance resource represents a single FAQ question contained within a FAQ site resource.
/2013-07-21/faqs/{FAQId}/questions/{questionId}
A FAQ question resource is represented by the following properties:
Property | Description |
---|---|
id | Unique integer identifier for a FAQ question. |
question | String containing the question. |
answer | String containing the answer. |
topics | Array of topic strings. Questions can be tagged with one or more FAQ topics. |
revisions | Array of revision objects. The last 10 revisions made to a question's answer are retained. |
Retrieve the details of a FAQ question.
Returns a JSON response containing a representation of a FAQ question, including the properties above.
GET /2013-07-21/faqs/2817/questions/9884
{
"id": 9884,
"question": "example question",
"answer": "example answer",
"topics": ["example topic"],
"revisions": [{
"revision": 1,
"created": "2015-05-18T13:58:14.808-04:00",
"editor": "ashelton"
}]
}
Not supported.
Modify the properties of an existing FAQ question.
You may include, as JSON PUT data, any of the following properties.
Property | Description |
---|---|
question | String containing the question. |
answer | String containing the answer. |
topics | Array of topic strings. Questions can be tagged with one or more FAQ topics. |
likes | Integer representing the number of upvotes. |
dislikes | Integer representing the number of downvotes. |
views | Integer representing the number of views of this question. |
Returns a JSON response representing the updated question resource.
PUT /2013-07-21/faqs/2817/questions/9884
{
"question": "Is this a question?"
"answer": "This is an answer."
}
{
"id": 9884,
"question": "Is this a question?",
"answer": "This is an answer.",
"topics": ["example topic"],
"revisions": [{
"revision": 1,
"created": "2015-05-18T13:58:14.808-04:00",
"editor": "ashelton"
}, {
"revision": 2,
"created": "2015-05-19T10:11:25.170-04:00",
"editor": "ashelton"
}]
}
Delete a FAQ question.
Returns an empty response.
DELETE /2013-07-21/faqs/2817/questions/9884
The FAQ Questions list resource represents all the FAQ questions for a FAQ site.
/2013-07-21/faqs/3060/questions
Returns all the FAQ questions for a FAQ site.
Returns a JSON response containing a list of FAQ question resources.
GET /2013-07-21/faqs/3060/questions
[
{
"id": 9884
"question": "example question",
"views": 4,
"likes": 1,
"dislikes": 1,
"updatedAt": "2015-05-19T10:11:25.200-04:00",
"topics": ["example topic"]
}
]
Create a new FAQ question.
You must include, as JSON POST data, all of the following properties.
Property | Description |
---|---|
question | String containing the question text. |
answer | String containing the answer text. |
You may include, as JSON POST data, any of the following properties.
Property | Description |
---|---|
topics | Array of topic strings. Questions can be tagged with one or more FAQ topics. |
If successful, returns a JSON response containing the resource representation of the newly created FAQ question.
POST /2013-07-21/faqs/3060/questions
{
"id": 9885,
"question": "my new question",
"answer": "my new answer",
"topics": ["my topic"],
"revisions": [{
"revision": 1,
"created": "2015-05-19T10:49:48.858-04:00",
"editor": "ashelton"
}
}
Not supported.
Not supported.