POST
https://api.myidvirtual.com
/
feedback
Criar Feedback
curl --request POST \
  --url https://api.myidvirtual.com/feedback \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "message": "<string>",
  "rating": 123,
  "category": "<string>"
}
'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "title": "Sugestão de melhoria",
  "message": "Seria ótimo ter suporte a mais servidores",
  "rating": 5,
  "category": "FEATURE",
  "status": "PENDING",
  "createdAt": "2024-01-15T10:30:00.000Z"
}

Criar Feedback

Endpoint para usuários enviarem feedback sobre o serviço.

Autenticação

Authorization
string
required
Bearer token JWT do usuário autenticado

Request Body

title
string
required
Título do feedback
message
string
required
Mensagem do feedback
rating
number
Avaliação de 1 a 5
category
string
Categoria (BUG, FEATURE, IMPROVEMENT, COMPLAINT)

Responses

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "title": "Sugestão de melhoria",
  "message": "Seria ótimo ter suporte a mais servidores",
  "rating": 5,
  "category": "FEATURE",
  "status": "PENDING",
  "createdAt": "2024-01-15T10:30:00.000Z"
}

Exemplo de Requisição

curl --location --request POST 'http://localhost:3333/feedback' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \
--header 'Content-Type: application/json' \
--data-raw '{
  "title": "Sugestão de melhoria",
  "message": "Seria ótimo ter suporte a mais servidores",
  "rating": 5,
  "category": "FEATURE"
}'