Geek Social — Documentação
API ReferenceListing ratings

GET /ratings/offers/{offerId}/mine

Minha avaliação numa oferta específica

GET/ratings/offers/{offerId}/mineAuth: accessToken

Retorna o rating do user atual nessa offer (ou null se ainda não avaliou).

Request

Esta requisição não tem corpo.

Response

200

Sem corpo na resposta.

Erros

Sem respostas de erro documentadas.

Exemplos

curl -X GET 'http://localhost:3003/ratings/offers/{offerId}/mine' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
  -d '{}'
await fetch('http://localhost:3003/ratings/offers/{offerId}/mine', {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'Bearer ' + accessToken,
  },
  body: JSON.stringify({}),
})

Side effects

Relacionados

On this page