summaryrefslogtreecommitdiff
path: root/es/teams.md
diff options
context:
space:
mode:
Diffstat (limited to 'es/teams.md')
-rw-r--r--es/teams.md77
1 files changed, 77 insertions, 0 deletions
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.
+
+<aside class="warning">
+Importante - Recursos de equipo aún no están disponibles en el API..
+</aside>
+
+{% 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 <api-key>" \
+ -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
+
+<aside class="success">
+Recuerda — un equipo autentificado es un equipo feliz!
+</aside>
+
+{% method %}
+## Conseguir un Solo Equipo
+
+Este endpoint devuelve un equipo específico.
+
+{% sample lang="shell" %}
+```shell
+curl "https://api.dc01.gamelockerapp.com/teams/<ID>" \
+ -H "Authorization: Bearer <api-key>" \
+ -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/<ID>`
+
+### Parámetros URL
+
+Parámetro | Descripción
+--------- | -----------
+ID | El ID del equipo a recoger