Filter Categories

This service returns categories with pagination

Filter Categories

GET {{server-url}}/categories/filter

It returns list of categories with pagination

Query Parameters

Name
Type
Description

page

Number

Represents page number. Default 0

name

String

Represents category's name

orderDirection

String

Represents order direction. It can be ASC or DESC. Default DESC

size

Number

Represents content size. Default 10

Headers

Name
Type
Description

Authorization*

String

UUID formatted access token

PROJECT-ID*

String

UUID formatted project's identifier

{
    // Response
}

Example Response Body

{
    "data": {
        "content": [
            {
                "id": 530,
                "name": "Truck"
            }
        ],
        "pageable": {
            "sort": {
                "unsorted": false,
                "sorted": true,
                "empty": false
            },
            "pageNumber": 0,
            "pageSize": 10,
            "offset": 0,
            "unpaged": false,
            "paged": true
        },
        "totalPages": 1,
        "totalElements": 1,
        "last": true,
        "numberOfElements": 1,
        "sort": {
            "unsorted": false,
            "sorted": true,
            "empty": false
        },
        "first": true,
        "number": 0,
        "size": 10,
        "empty": false
    },
    "message": null,
    "code": 0,
    "error": false
}

Response Fields

Key
Type
Description

id

Number

Represents category's identifier

name

String

Represents category's name

Last updated