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"
}
Cria um novo feedback de usuário
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"
}
{
"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"
}
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"
}'