From 1542bd5e0533c535a5b4410ff83f1db8956a5acd Mon Sep 17 00:00:00 2001 From: Brian Corrigan Date: Wed, 4 Oct 2017 08:48:13 -0400 Subject: Initial commit --- en/teams.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 en/teams.md (limited to 'en/teams.md') diff --git a/en/teams.md b/en/teams.md new file mode 100644 index 0000000..994c4fb --- /dev/null +++ b/en/teams.md @@ -0,0 +1,67 @@ +# Teams (Coming Soon!) + +Team objects contain aggregated lifetime information about each Team. + +## Get a collection of Teams + +```shell +curl "https://api.dc01.gamelockerapp.com/shards/na/teams?filter[teamNames]=team1" \ + -H "Authorization: Bearer " \ + -H "Accept: application/vnd.api+json" +``` + +This endpoint retrieves a collection of up to 6 teams. + + + +### HTTP Request + +`GET https://api.dc01.gamelockerapp.com/teams` + +### Query Parameters + +Parameter | Default | Description +--------- | ------- | ----------- +filter[teamNames] | none | Filters by team name. Usage: filter[teamNames]=team1 +filter[teamIds] | none | Filter by team id. Usage: filter[teamIds]=12345 + + + +## Get a single Team + +```shell +curl "https://api.dc01.gamelockerapp.com/teams/" \ + -H "Authorization: Bearer " \ + -H "Accept: application/vnd.api+json" +``` + +```python +``` + +> The above command returns JSON structured like this: + +```json +{ + "id": 2, + "name": "Max", + "breed": "unknown", + "fluffiness": 5, + "cuteness": 10 +} +``` + +This endpoint retrieves a specific team. + +### HTTP Request + +`GET https://api.dc01.gamelockerapp.com/teams/` + +### URL Parameters + +Parameter | Description +--------- | ----------- +ID | The ID of the team to retrieve -- cgit v1.3.1