Get All Reactions
This endpoint retrieves all reactions.
info
This operation does not require authentication.
HTTP Request
GET /api/v2/reaction/
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
search | query | string | false | A search term |
active | query | boolean | false | If the reaction is active |
ordering | query | string | false | Which field to use when ordering the results |
Example Request
- JavaScript
- Bash
const headers = {
'Accept':'application/json'
};
fetch('/api/v2/reaction/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
# You can also use wget
curl -X GET /api/v2/reaction/ \
-H 'Accept: application/json'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Response status code | Inline |
Response Schema
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» count | integer | false | none | Total results count |
» next | string(uri)¦null | false | none | Next page url |
» previous | string(uri)¦null | false | none | Previous page url |
» results | list(Reaction) | false | none | List of results |
Example responses
- 200
{
"count": "integer",
"next": "string(uri)",
"previous": "string(uri)",
"results": [
{
"id": "integer",
"label": "string",
"sentiment": "integer",
"image": "string(uri)",
"active": "boolean"
}
]
}