From 1542bd5e0533c535a5b4410ff83f1db8956a5acd Mon Sep 17 00:00:00 2001 From: Brian Corrigan Date: Wed, 4 Oct 2017 08:48:13 -0400 Subject: Initial commit --- es/teams.md | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 es/teams.md (limited to 'es/teams.md') diff --git a/es/teams.md b/es/teams.md new file mode 100644 index 0000000..e846402 --- /dev/null +++ b/es/teams.md @@ -0,0 +1,77 @@ +# Equipos (Disponible pronto!) + +Objetos equipo contienen información agregada durante la existencia de cada equipo. + +Este endpoint recoge una colección de hasta 6 equipos. + + + +{% method %} +## Conseguir una colección de equipos + +{% sample lang="shell" %} +```shell +curl "https://api.dc01.gamelockerapp.com/shards/na/teams?filter[teamNames]=team1" \ + -H "Authorization: Bearer " \ + -H "X-TITLE-ID: semc-vainglory" \ + -H "Accept: application/vnd.api+json" +``` +{% endmethod %} + +### Petición HTTP + +`GET https://api.dc01.gamelockerapp.com/teams` + +### Parámetros de pregunta + +Parámetro | Defecto | Descripción +--------- | ------- | ----------- +filter[teamNames] | none | Flirta por nombre del equipo. Uso: filter[teamNames]=team1 +filter[teamIds] | none | Filtra por id del equipo. Uso: filter[teamIds]=12345 + + + +{% method %} +## Conseguir un Solo Equipo + +Este endpoint devuelve un equipo específico. + +{% sample lang="shell" %} +```shell +curl "https://api.dc01.gamelockerapp.com/teams/" \ + -H "Authorization: Bearer " \ + -H "X-TITLE-ID: semc-vainglory" \ + -H "Accept: application/vnd.api+json" +``` +{% sample lang="python" %} +```python + +``` +{% common %} +> El comando arriba devuelve JSON estructurado de esta manera: + +```json +{ + "id": 2, + "name": "Max", + "breed": "unknown", + "fluffiness": 5, + "cuteness": 10 +} +``` + +{% endmethod %} + +### Petición HTTP + +`GET https://api.dc01.gamelockerapp.com/teams/` + +### Parámetros URL + +Parámetro | Descripción +--------- | ----------- +ID | El ID del equipo a recoger -- cgit v1.3.1