Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 545 Bytes

show-category.md

File metadata and controls

42 lines (28 loc) · 545 Bytes

Show Category

Returns a Category with the given id.

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

URL Parameters : id=[integer]

Method : GET

Authorization : Bearer Token

Success Response

Code : 200 OK

Content Example :

{
    "id": 1,
    "name": "Phone"
}

Error Responses

Code : 404 NOT FOUND

Content :

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