Sorting parameter Available values : entity fields Default value : id
id
Sorting parameter Available values : [ASC,DESC] !! Default value : ASC "default not working"
Desc
Paging parameter Default value : null
2
Paging parameter Default value : 0
3
Filter parameter check the role value
1
GET /api/v3/forms/2/roles HTTP/1.1
Host: ushahididocs.api.ushahidi.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"count": 1,
"results": [
{
"id": 1,
"url": "http://localhost:8000/forms/2/roles/1",
"form_id": 2,
"role_id": 1,
"allowed_privileges": [
"read",
"create",
"update",
"delete",
"search"
]
}
],
"offset": 0,
"order": "asc",
"orderby": "role_id",
"curr": "http://localhost:8000/api/v3/forms/2/roles?orderby=role_id&order=asc&offset=0",
"next": "http://localhost:8000/api/v3/forms/2/roles?orderby=role_id&order=asc&offset=0",
"prev": "http://localhost:8000/api/v3/forms/2/roles?orderby=role_id&order=asc&offset=0",
"total_count": 1
}