Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 610 Bytes

File metadata and controls

45 lines (31 loc) · 610 Bytes

Show Product

Returns a Product with the given id.

URL : /api/v{:apiVersion}/products/:id

URL Parameters : id=[integer]

Method : GET

Authorization : Bearer Token

Success Response

Code : 200 OK

Content Example :

{
    "id": 6,
    "categoryId": 3,
    "unitsInStock": 389,
    "unitPrice": 142.00,
    "name": "Beko"
}

Error Responses

Code : 404 NOT FOUND

Content :

{
    "errors": [
        {
            "code": "NotFoundError",
            "description": "Product not found for parameters {id=111}."
        }
    ]
}