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
[ {
"classId" : 12345,
"name" : "...",
"userId" : 12345,
"isDefault" : true,
"ownerFullName" : "...",
"filterId" : 12345,
"filterData" : "...",
"isOwner" : true
} ]
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
{
"classId" : 12345,
"name" : "...",
"userId" : 12345,
"isDefault" : true,
"ownerFullName" : "...",
"filterId" : 12345,
"filterData" : "...",
"isOwner" : true
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"classId" : 12345,
"name" : "...",
"userId" : 12345,
"isDefault" : true,
"ownerFullName" : "...",
"filterId" : 12345,
"filterData" : "...",
"isOwner" : true
}
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
{ }