Obter todos os tickets de suporte

GET /tickets

Retorna todos os tickets de suporte registrados no sistema.

Responses

  • 200 application/json

    Tickets retornados com sucesso

    Hide response attributes Show response attributes object
    • id integer
    • subject string
    • message string
    • created_at string(date-time)
    • status string

      Status do ticket (ex: 'open', 'closed')

    • response string

      Resposta ao ticket

  • 500 application/json

    Erro ao Procurarr tickets

    Hide response attributes Show response attributes object
    • message string
    • error string
GET /tickets
curl \
 --request GET 'http://localhost:8000/tickets'
Response examples (200)
[
  {
    "id": 42,
    "subject": "string",
    "message": "string",
    "created_at": "2025-05-04T09:42:00Z",
    "status": "string",
    "response": "string"
  }
]
Response examples (500)
{
  "message": "string",
  "error": "string"
}