Grid Filters admin API
Get all filters
media type | data type | description |
---|---|---|
application/json | array of HdcUserFilterTO (JSON) | JSON Response with filter data
Example of response:
|
GET /api/admin/filters/grid/json
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"isDefault" : true,
"ownerFullName" : "...",
"filterData" : "...",
"isOwner" : true,
"classId" : 12345,
"userId" : 12345,
"filterId" : 12345,
"name" : "..."
} ]
add new filter for user
media type | data type | description |
---|---|---|
application/json | HdcUserFilterTO (JSON) | - grid filter data |
media type | data type | description |
---|---|---|
application/json | HdcUserFilterTO (JSON) | JSON Response with description of filter with unique ID |
POST /api/admin/filters/grid/json
Content-Type: application/json
Accept: application/json
{
"isDefault" : true,
"ownerFullName" : "...",
"filterData" : "...",
"isOwner" : true,
"classId" : 12345,
"userId" : 12345,
"filterId" : 12345,
"name" : "..."
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"isDefault" : true,
"ownerFullName" : "...",
"filterData" : "...",
"isOwner" : true,
"classId" : 12345,
"userId" : 12345,
"filterId" : 12345,
"name" : "..."
}
Assign user to filter
name | type | description | constraints |
---|---|---|---|
filterId | path | Id of filter | long |
media type | data type |
---|---|
application/json | string (JSON) |
media type | data type | description |
---|---|---|
application/json | HdcSuccessTO (JSON) | JSON Response with information if operation succeeded |
POST /api/admin/filters/grid/assign/{filterId}
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 201 Created
Content-Type: application/json
{ }
delete user filter
name | type | description | constraints |
---|---|---|---|
filterId | path | - id of filter | long |
media type | data type | description |
---|---|---|
application/json | HdcSuccessTO (JSON) | JSON Response with information if operation succeeded |
DELETE /api/admin/filters/grid/json/{filterId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
{ }
Unassign user to filter
name | type | description | constraints |
---|---|---|---|
filterId | path | Id of filter | long |
media type | data type |
---|---|
application/json | string (JSON) |
media type | data type | description |
---|---|---|
application/json | HdcSuccessTO (JSON) | JSON Response with information if operation succeeded |
POST /api/admin/filters/grid/unassign/{filterId}
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 201 Created
Content-Type: application/json
{ }