Retorna os produtos mais vendidos

GET /mais-vendidos

Obtém os 8 produtos mais vendidos nos últimos 30 dias.

Responses

  • 200 application/json

    Lista de produtos mais vendidos

    Hide response attributes Show response attributes object
    • id integer
    • name string
    • price number(float)
    • image string
    • total_sales integer
GET /mais-vendidos
curl \
 --request GET 'http://localhost:8000/mais-vendidos'
Response examples (200)
[
  {
    "id": 42,
    "name": "string",
    "price": 42.0,
    "image": "string",
    "total_sales": 42
  }
]