GetCategory

GET /categories/{categoryId}

Get category

Path parameters

  • categoryId string Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • type string Required

      Values are plant or insect.

    • category string Required

      Minimum length is 2, maximum length is 20.

    • subcategory string

      Minimum length is 2, maximum length is 20.

  • 400

    Bad Request

  • 404

    Not Found

  • 500

    Internal Server Error

GET /categories/{categoryId}
curl \
 --request GET 'https://garden-to-yours.herokuapp.com/categories/{categoryId}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "type": "plant",
  "category": "string",
  "subcategory": "string"
}