Answers
Get all Answers
This endpoint retrieves a list of Answer resources.
GET /api/v2/library/answers/
GET /api/v2/library/answers/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json
{
"results": [
{
"id": "A1",
"text": "Java",
"description": ""
},
{
"id": "A2",
"text": "C#",
"description": "C# is a multi-paradigm programming language developed by Microsoft within its .NET framework."
},
{
"id": "A3",
"text": "JavaScript",
"description": ""
},
{
"id": "A4",
"text": "Web application",
"description": "The application is accessed through a web browser."
}
]
}
Get a specific Answer
This endpoint retrieves a specific active Answer, as specified by the id parameter.
GET /api/v2/library/answers/{answer_id}/
URL Parameters
Parameter | Description |
---|---|
answer_id | The id of the Answer to retrieve. |
GET /api/v2/library/answers/A1/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "A1",
"text": "Java",
"description": ""
}