Skip to content

Categories

Lars Westermann edited this page Feb 14, 2020 · 3 revisions

/api/v1/categories?search=

Search for categories

GET

Request Parameter

  • search?: <<search string>>

Response body

[
    {
        <<Category>>,
        "id_search": "category.id with highlighting",
        "name_search": "category.name with highlighting",
        "current_price_search": "category.current_price with highlighting",
    }
]

PUT

Create a new category

Request Parameter

<<Category>>

Response body

{
    "id": "00000000-0000-0000-0000-000000000000"
}

/api/v1/category/{category_id}

Get category by id

GET

Request Parameter

  • category_id: 00000000-0000-0000-0000-000000000000

Response body

<<Category>>

POST

Update a category

Request Parameter

  • category_id: 00000000-0000-0000-0000-000000000000
<<Category>>

DELETE

Delete a category

Request Parameter

  • category_id: 00000000-0000-0000-0000-000000000000