Geek Social — Documentação
API ReferencePosts

GET /posts/{postId}/reactions

Listar reações do post

GET/posts/{postId}/reactionsAuth: público

Retorna { counts: { power_up, epic, ... }, mine: type | null, recent: User[] }.

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

Side effects

Relacionados

On this page