Obtém um produto específico com suas informações

GET /getproductUp/{id}

Retorna os detalhes completos de um produto com base no ID fornecido.

Path parameters

  • id integer Required

    ID do produto a ser recuperado.

Responses

  • 200 application/json

    Produto encontrado

    Hide response attributes Show response attributes object
    • id integer
    • name string
    • price number(float)
    • stock integer
    • threshold integer
    • category object

      Additional properties are allowed.

      Hide category attribute Show category attribute object
      • name string
    • scientific_name string
    • description string
    • size string
    • image string
    • isKit boolean
GET /getproductUp/{id}
curl \
 --request GET 'http://localhost:8000/getproductUp/{id}'
Response examples (200)
{
  "id": 42,
  "name": "string",
  "price": 42.0,
  "stock": 42,
  "threshold": 42,
  "category": {
    "name": "string"
  },
  "scientific_name": "string",
  "description": "string",
  "size": "string",
  "image": "string",
  "isKit": true
}