Retorna os produtos mais recentes

GET /novidades

Obtém os 8 produtos mais recentes com base na data de criação.

Responses

  • 200 application/json

    Lista de produtos recentes

    Hide response attributes Show response attributes object
    • id integer
    • name string
    • price number(float)
    • image string
    • created_at string(date-time)
GET /novidades
curl \
 --request GET 'http://localhost:8000/novidades'
Response examples (200)
[
  {
    "id": 42,
    "name": "string",
    "price": 42.0,
    "image": "string",
    "created_at": "2025-05-04T09:42:00Z"
  }
]