Geek Social — Documentação
API ReferenceListing ratings

GET /ratings/users/{userId}

Reputação agregada de um usuário

GET/ratings/users/{userId}Auth: accessToken

Retorna { count, avgScore, visible }. visible=false se count < MIN_RATINGS (3) — frontend mostra "sem reputação ainda".

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/users/{userId}' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
  -d '{}'
await fetch('http://localhost:3003/ratings/users/{userId}', {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'Bearer ' + accessToken,
  },
  body: JSON.stringify({}),
})

Side effects

Relacionados

On this page