Skip to content

Products

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

/api/v1/products?search=

Search for products

GET

Request Parameter

  • search?: <<search string>>

Response body

[
    {
        <<Product>>,
        "name_search": "product.name_search with highlighting",
        "category_search": "product.category_search with highlighting",
        "current_price_search": "product.current_price_search with highlighting",
        "barcode_search": "product.barcode_search with highlighting"
    }
]

PUT

Create a new product

Request Parameter

<<Product>>

Response body

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

/api/v1/product/{product_id}

Get product by id

GET

Request Parameter

  • product_id: 00000000-0000-0000-0000-000000000000

Response body

<<Product>>

POST

Update a product

Request Parameter

  • product_id: 00000000-0000-0000-0000-000000000000
<<Product>>

DELETE

Delete a product

Request Parameter

  • product_id: 00000000-0000-0000-0000-000000000000