List Palettes
GET {{baseUrl}}/palettes?page[number]=1&page[size]=20&filter[discipline]=<string>&filter[countryCode]=<string>&sort=-createdAt
List Palettes, filtered by user provided parameters. This will return palettes those are either created by partition owner or approved palettes from other partitions.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
page[number] | number | A cursor to the page number for use in “pagination linked list” | |
page[size] | number | Numbers of items to return | |
filter[discipline] | string | Discipline of Palette | |
filter[countryCode] | string | Country Code of palette | |
sort | string | Sort by createdAt time and name |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"links":{"self":"/partitions/4fa85f64-8888-2222-c3fc-2c963f66afa6/palettes?sort=-createdAt\u0026page[number]=1\u0026page[size]=20","first":"/partitions/4fa85f64-8888-2222-c3fc-2c963f66afa6/palettes?sort=-createdAt\u0026page[number]=1\u0026page[size]=20","prev":"/partitions/4fa85f64-8888-2222-c3fc-2c963f66afa6/palettes?sort=-createdAt\u0026page[number]=1\u0026page[size]=20","next":"/partitions/4fa85f64-8888-2222-c3fc-2c963f66afa6/palettes?sort=-createdAt\u0026page[number]=1\u0026page[size]=20","last":"/partitions/4fa85f64-8888-2222-c3fc-2c963f66afa6/palettes?sort=-createdAt\u0026page[number]=1\u0026page[size]=20"},"data":[{"id":"827d0ae5-6c62-42a7-9367-7aa95512823e","type":"Palette","meta":{"createdAt":"2018-01-13T19:56:02.197Z","updatedAt":"1973-09-18T07:33:05.651Z","createdBy":"Z0011111","updatedBy":"Z0011111"},"attributes":{"name":"Fire Palette 1","discipline":"\u003cstring\u003e","countryCode":"CHE"},"links":{"self":"/partitions/4fa85f64-8888-2222-c3fc-2c963f66afa6/palettes/4fa85f64-5454-1212-c3fc-2c963f66af44"}},{"id":"827d0ae5-6c62-42a7-9367-7aa95512823e","type":"Palette","meta":{"createdAt":"2003-05-19T21:10:22.717Z","updatedAt":"1976-08-14T17:07:23.800Z","createdBy":"Z0011111","updatedBy":"Z0011111"},"attributes":{"name":"Fire Palette 1","discipline":"\u003cstring\u003e","countryCode":"CHE"},"links":{"self":"/partitions/4fa85f64-8888-2222-c3fc-2c963f66afa6/palettes/4fa85f64-5454-1212-c3fc-2c963f66af44"}}]}