Integrate
Search and paging
List and search tasks and items with pages, free text, filters and sort.
List with pages
The list routes return one page of results. Page numbers start at 1.
| Query parameter | Default | Meaning |
|---|---|---|
number | 1 | Page number. |
size | 50 | Number of items per page. The maximum is 1000. |
GET https://rologi-flow.example.com/api/pick-tasks?number=1&size=50
Authorization: Bearer <token>The answer has two parts:
content: the items of this page.page: the paging data:number,size,totalElementsandtotalPages.
Search
A search route takes a JSON body with three optional parts.
| Field | Meaning |
|---|---|
search | Free text. A resource matches when one of its searchable fields contains the text. Case is ignored. The text is used as a whole, without wildcards. |
filter | A list of conditions. A resource must match all conditions, and the search text if you send one. |
page | number, size and sort. The default is page 1, size 50 and no sort. |
POST https://rologi-flow.example.com/api/pick-tasks
Authorization: Bearer <token>
Content-Type: application/json
{
"search": "John",
"filter": {
"type": "QUERY",
"query": [
{
"field": "state",
"operator": "in",
"value": ["COMPLETED", "CANCELED", "FAILED"]
}
]
},
"page": {
"number": 1,
"size": 50,
"sort": "state desc, name"
}
}Rules that apply to each search route:
- Search, filter and sort apply to all resources before Rologi Flow cuts the page.
- A field of a nested list matches when one element or more matches.
- An unknown or unsupported field gives
400. - Results are always ordered by
idlast, so paging is stable.
Filter conditions
A condition has a field, an operator and a value.
- Operators:
is,eq,ne,co,sw,ew,gt,gte,lt,lte,in. - The type of
valuedepends on the field and the operator. Use a list within. - Use
trueorfalsewith the operatorisfor null checks.
Each resource has its own lists of fields for search, filter and page.sort. The search request object gives them.
| Resource | Search route | Fields |
|---|---|---|
| Pick tasks | POST /api/pick-tasks | PickTaskSearchRequest |
| Putaway tasks | POST /api/putaway-tasks | PutawayTaskSearchRequest |
| Decanting tasks | POST /api/decanting-tasks | DecantingTaskSearchRequest |
| Simple items | POST /api/simple-items/search | SimpleItemSearchRequest |