Skip to main content
GET
/
v1
/
times
/
{timeId}
/
jogadores
Jogadores de um time
curl --request GET \
  --url http://localhost:8000/api/v1/times/{timeId}/jogadores \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": 1,
      "nome_popular": "Pedro",
      "nome": "Pedro Guilherme",
      "idade": 27,
      "posicao": {
        "nome": "Atacante",
        "sigla": "ATA"
      },
      "numero_camisa": 9,
      "gols": 15,
      "time": {
        "id": 1,
        "nome": "Flamengo",
        "sigla": "FLA",
        "escudo_url": null
      }
    }
  ],
  "meta": {
    "total": 25
  }
}

Authorizations

Authorization
string
header
required

Informe sua API Key no header Authorization: Bearer {sua_api_key}

Path Parameters

timeId
integer
required
Example:

1

Response

Lista de jogadores do time

data
object[]
meta
object