Merge branch '8-http-olympics' into 'master'

Resolve "http-olympics"

Closes #8

See merge request slon/shad-go-private!9
This commit is contained in:
verytable 2020-02-21 11:14:29 +00:00
commit 9eb86f7476
184 changed files with 534 additions and 0 deletions

162
olympics/README.md Normal file
View file

@ -0,0 +1,162 @@
## olympics
В этой задаче нужно написать http сервер со следующим API
* GET /athlete-info?name=S
-> вернуть информацию по атлету с именем: откуда, сколько каких медалей выиграл всего и по годам
* GET /top-athletes-in-sport?sport=SSSS&limit=K
-> вернуть top-K (default=3) спортсменов по абсолютному числу медалей в их спортивной карьере в указанном виде спорта
(сортируем по золотым, потом по серебрянным, потом по бронзе, потом лексикографически по имени спортсмена)
* GET /top-countries-in-year?year=YYYY&limit=K
-> вернуть top-K (default=3) стран в порядке медального зачета (сортируем по золотым, потом по серебрянным, потом по бронзе, потом лексикографически по стране)
используя данные о победителях и призёрах олимпийских игр из [./testdata/olympicWInners.json](./testdata/olympicWinners.json).
Сервер должен слушать порт, переданный через аргумент `-port`. Путь к json'у с данными передаётся через флаг `-data`.
### Примеры
Запуск:
```
$ olympics -port 6029 -data ./olympics/testdata/olympicWinners.json
```
#### athlete-info
Успешный запрос (200, json фиксированного вида):
```
$ curl -X GET "localhost:6029/athlete-info?name=Michael%20Phelps"
{
"athlete": "Michael Phelps",
"country": "United States",
"medals": {
"gold": 18,
"silver": 2,
"bronze": 2,
"total": 22
},
"medals_by_year": {
"2004": {
"gold": 6,
"silver": 0,
"bronze": 2,
"total": 8
},
"2008": {
"gold": 8,
"silver": 0,
"bronze": 0,
"total": 8
},
"2012": {
"gold": 4,
"silver": 2,
"bronze": 0,
"total": 6
}
}
}
```
Спортсмен не найден (404, произвольное сообщение об ошибке):
```
$ curl -i -X GET "localhost:6029/athlete-info?name=AB"
HTTP/1.1 404 Not Found
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
Date: Wed, 19 Feb 2020 23:24:30 GMT
Content-Length: 21
athlete AB not found
```
#### top-athletes-in-sport
Успешный запрос (200, json фиксированного вида):
```
$ curl -X GET "localhost:6029/top-athletes-in-sport?sport=Swimming&&limit=1"
[
{
"athlete": "Michael Phelps",
"country": "United States",
"medals": {
"gold": 18,
"silver": 2,
"bronze": 2,
"total": 22
},
"medals_by_year": {
"2004": {
"gold": 6,
"silver": 0,
"bronze": 2,
"total": 8
},
"2008": {
"gold": 8,
"silver": 0,
"bronze": 0,
"total": 8
},
"2012": {
"gold": 4,
"silver": 2,
"bronze": 0,
"total": 6
}
}
}
]
```
Неизвестный вид спорта (404, произвольное сообщение об ошибке):
```
$ curl -i -X GET "localhost:6029/top-athletes-in-sport?sport=chess"
HTTP/1.1 404 Not Found
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
Date: Thu, 20 Feb 2020 00:42:24 GMT
Content-Length: 24
sport 'chess' not found
```
#### top-countries-in-year
Успешный запрос (200, json фиксированного вида):
```
$ curl -X GET "localhost:6029/top-countries-in-year?year=2012&&limit=2"
[
{
"country": "United States",
"gold": 145,
"silver": 63,
"bronze": 46,
"total": 254
},
{
"country": "China",
"gold": 56,
"silver": 40,
"bronze": 29,
"total": 125
}
]
```
Год не найден (404, произвольное сообщение):
```
$ curl -i -X GET "localhost:6029/top-countries-in-year?year=2009"
HTTP/1.1 404 Not Found
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
Date: Thu, 20 Feb 2020 00:10:27 GMT
Content-Length: 20
year 2009 not found
```

7
olympics/main.go Normal file
View file

@ -0,0 +1,7 @@
// +build !solution
package main
func main() {
}

184
olympics/main_test.go Normal file
View file

@ -0,0 +1,184 @@
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
"os/exec"
"path"
"strconv"
"testing"
"time"
"github.com/go-resty/resty/v2"
"github.com/stretchr/testify/require"
"gitlab.com/slon/shad-go/tools/testtool"
)
const importPath = "gitlab.com/slon/shad-go/olympics"
var binCache testtool.BinCache
func TestMain(m *testing.M) {
os.Exit(func() int {
var teardown testtool.CloseFunc
binCache, teardown = testtool.NewBinCache()
defer teardown()
return m.Run()
}())
}
func startServer(t *testing.T) (port string, stop func()) {
binary, err := binCache.GetBinary(importPath)
require.NoError(t, err)
port, err = testtool.GetFreePort()
require.NoError(t, err, "unable to get free port")
cmd := exec.Command(binary, "-port", port, "-data", "./testdata/olympicWinners.json")
cmd.Stdout = nil
cmd.Stderr = os.Stderr
require.NoError(t, cmd.Start())
done := make(chan error)
go func() {
done <- cmd.Wait()
}()
stop = func() {
_ = cmd.Process.Kill()
<-done
}
if err = testtool.WaitForPort(t, time.Second*5, port); err != nil {
stop()
}
require.NoError(t, err)
return
}
func TestServer_valid(t *testing.T) {
port, stop := startServer(t)
defer stop()
c := resty.New().SetTimeout(time.Second)
for _, e := range []string{"athlete-info", "top-athletes-in-sport", "top-countries-in-year"} {
t.Run(e, func(t *testing.T) {
testDir := path.Join("./testdata", "tests", e)
files, err := ioutil.ReadDir(testDir)
if err != nil {
require.NoError(t, err)
}
for _, f := range files {
if !f.IsDir() {
continue
}
if _, err := strconv.Atoi(f.Name()); err != nil {
continue
}
t.Run(f.Name(), func(t *testing.T) {
in, err := ioutil.ReadFile(path.Join(testDir, f.Name(), "in.json"))
require.NoError(t, err)
out, err := ioutil.ReadFile(path.Join(testDir, f.Name(), "out.json"))
require.NoError(t, err)
var values map[string]interface{}
require.NoError(t, json.Unmarshal(in, &values))
resp, err := c.R().
SetQueryParams(toURLValues(values)).
Get(fmt.Sprintf("http://localhost:%s/%s", port, e))
require.NoError(t, err)
require.Equal(t, http.StatusOK, resp.StatusCode())
require.Contains(t, resp.Header().Get("Content-Type"), "application/json")
require.JSONEq(t, string(out), resp.String())
})
}
})
}
}
func TestServer_invalid(t *testing.T) {
port, stop := startServer(t)
defer stop()
c := resty.New().SetTimeout(time.Second)
for _, tc := range []struct {
endpoint string
description string
queryParams map[string]string
expectedCode int
}{
{
endpoint: "athlete-info",
description: "name-not-found",
queryParams: map[string]string{
"name": "AB",
},
expectedCode: http.StatusNotFound,
},
{
endpoint: "top-athletes-in-sport",
description: "sport-not-found",
queryParams: map[string]string{
"sport": "chess",
},
expectedCode: http.StatusNotFound,
},
{
endpoint: "top-athletes-in-sport",
description: "invalid-limit",
queryParams: map[string]string{
"sport": "Canoeing",
"limit": "2.5",
},
expectedCode: http.StatusBadRequest,
},
{
endpoint: "top-countries-in-year",
description: "year-not-found",
queryParams: map[string]string{
"year": "2009",
},
expectedCode: http.StatusNotFound,
},
{
endpoint: "top-countries-in-year",
description: "invalid-limit",
queryParams: map[string]string{
"year": "2012",
"limit": "2.5",
},
expectedCode: http.StatusBadRequest,
},
} {
t.Run(tc.endpoint+"-"+tc.description, func(t *testing.T) {
resp, err := c.R().
SetQueryParams(tc.queryParams).
Get(fmt.Sprintf("http://localhost:%s/%s", port, tc.endpoint))
require.NoError(t, err)
require.Equal(t, tc.expectedCode, resp.StatusCode())
})
}
}
func toURLValues(in map[string]interface{}) map[string]string {
out := make(map[string]string)
for k, v := range in {
out[k] = fmt.Sprintf("%v", v)
}
return out
}

1
olympics/testdata/olympicWinners.json vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"name": "Kh\u00e9dafi Djelkhir"}

View file

@ -0,0 +1 @@
{"athlete":"Khédafi Djelkhir","country":"France","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Radoslav \u017didek"}

View file

@ -0,0 +1 @@
{"athlete":"Radoslav Židek","country":"Slovakia","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2006":{"gold":0,"silver":1,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Timo We\u00df"}

View file

@ -0,0 +1 @@
{"athlete":"Timo Weß","country":"Germany","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Jang So-Hui"}

View file

@ -0,0 +1 @@
{"athlete":"Jang So-Hui","country":"South Korea","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Misty May-Treanor"}

View file

@ -0,0 +1 @@
{"athlete":"Misty May-Treanor","country":"United States","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Bj\u00f6rgvin Gustavsson"}

View file

@ -0,0 +1 @@
{"athlete":"Björgvin Gustavsson","country":"Iceland","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Darren Bundock"}

View file

@ -0,0 +1 @@
{"athlete":"Darren Bundock","country":"Australia","medals":{"gold":0,"silver":2,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Kenny Brokenburr"}

View file

@ -0,0 +1 @@
{"athlete":"Kenny Brokenburr","country":"United States","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Ma Jin"}

View file

@ -0,0 +1 @@
{"athlete":"Ma Jin","country":"China","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Lyudmila Postnova"}

View file

@ -0,0 +1 @@
{"athlete":"Lyudmila Postnova","country":"Russia","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Carolyn Darbyshire-McRory"}

View file

@ -0,0 +1 @@
{"athlete":"Carolyn Darbyshire-McRory","country":"Canada","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":0,"silver":1,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Tamer Salah"}

View file

@ -0,0 +1 @@
{"athlete":"Tamer Salah","country":"Egypt","medals":{"gold":0,"silver":0,"bronze":1,"total":1},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Sonja Barjaktarovic"}

View file

@ -0,0 +1 @@
{"athlete":"Sonja Barjaktarovic","country":"Montenegro","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Egil Gjelland"}

View file

@ -0,0 +1 @@
{"athlete":"Egil Gjelland","country":"Norway","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Cammi Granato"}

View file

@ -0,0 +1 @@
{"athlete":"Cammi Granato","country":"United States","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2002":{"gold":0,"silver":1,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Kely"}

View file

@ -0,0 +1 @@
{"athlete":"Kely","country":"Brazil","medals":{"gold":0,"silver":0,"bronze":1,"total":1},"medals_by_year":{"2000":{"gold":0,"silver":0,"bronze":1,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Bart Brentjens"}

View file

@ -0,0 +1 @@
{"athlete":"Bart Brentjens","country":"Netherlands","medals":{"gold":0,"silver":0,"bronze":1,"total":1},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Hirotoshi Ishii"}

View file

@ -0,0 +1 @@
{"athlete":"Hirotoshi Ishii","country":"Japan","medals":{"gold":0,"silver":0,"bronze":1,"total":1},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Jon Drummond"}

View file

@ -0,0 +1 @@
{"athlete":"Jon Drummond","country":"United States","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Lin Qingfeng"}

View file

@ -0,0 +1 @@
{"athlete":"Lin Qingfeng","country":"China","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Adam Pine"}

View file

@ -0,0 +1 @@
{"athlete":"Adam Pine","country":"Australia","medals":{"gold":1,"silver":2,"bronze":0,"total":3},"medals_by_year":{"2000":{"gold":1,"silver":1,"bronze":0,"total":2},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Jevgenijs Sapronenko"}

View file

@ -0,0 +1 @@
{"athlete":"Jevgenijs Sapronenko","country":"Latvia","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Matt Schnobrich"}

View file

@ -0,0 +1 @@
{"athlete":"Matt Schnobrich","country":"United States","medals":{"gold":0,"silver":0,"bronze":1,"total":1},"medals_by_year":{"2008":{"gold":0,"silver":0,"bronze":1,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Karolina Naja"}

View file

@ -0,0 +1 @@
{"athlete":"Karolina Naja","country":"Poland","medals":{"gold":0,"silver":0,"bronze":1,"total":1},"medals_by_year":{"2012":{"gold":0,"silver":0,"bronze":1,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Josh West"}

View file

@ -0,0 +1 @@
{"athlete":"Josh West","country":"Great Britain","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Kiyofumi Nagai"}

View file

@ -0,0 +1 @@
{"athlete":"Kiyofumi Nagai","country":"Japan","medals":{"gold":0,"silver":0,"bronze":1,"total":1},"medals_by_year":{"2008":{"gold":0,"silver":0,"bronze":1,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Bridgitte Hartley"}

View file

@ -0,0 +1 @@
{"athlete":"Bridgitte Hartley","country":"South Africa","medals":{"gold":0,"silver":0,"bronze":1,"total":1},"medals_by_year":{"2012":{"gold":0,"silver":0,"bronze":1,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "D\u00e1niel Varga"}

View file

@ -0,0 +1 @@
{"athlete":"Dániel Varga","country":"Hungary","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "C\u00e9dric Grand"}

View file

@ -0,0 +1 @@
{"athlete":"Cédric Grand","country":"Switzerland","medals":{"gold":0,"silver":0,"bronze":1,"total":1},"medals_by_year":{"2006":{"gold":0,"silver":0,"bronze":1,"total":1}}}

View file

@ -0,0 +1 @@
{"name": "Qiu Jian"}

View file

@ -0,0 +1 @@
{"athlete":"Qiu Jian","country":"China","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}}

View file

@ -0,0 +1 @@
{"sport": "Nordic Combined", "limit": 3}

View file

@ -0,0 +1 @@
[{"athlete":"Felix Gottwald","country":"Austria","medals":{"gold":3,"silver":1,"bronze":3,"total":7},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":3,"total":3},"2006":{"gold":2,"silver":1,"bronze":0,"total":3},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Samppa Lajunen","country":"Finland","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2002":{"gold":3,"silver":0,"bronze":0,"total":3}}},{"athlete":"Mario Stecher","country":"Austria","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":1,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}}]

View file

@ -0,0 +1 @@
{"sport": "Table Tennis", "limit": 16}

View file

@ -0,0 +1 @@
[{"athlete":"Wang Nan","country":"China","medals":{"gold":4,"silver":1,"bronze":0,"total":5},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Zhang Yining","country":"China","medals":{"gold":4,"silver":0,"bronze":0,"total":4},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Ma Lin","country":"China","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Wang Hao","country":"China","medals":{"gold":2,"silver":3,"bronze":0,"total":5},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Guo Yue","country":"China","medals":{"gold":2,"silver":0,"bronze":2,"total":4},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Wang Liqin","country":"China","medals":{"gold":2,"silver":0,"bronze":2,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":1,"total":2}}},{"athlete":"Li Xiaoxia","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Zhang Jike","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Yu Seung-Min","country":"South Korea","medals":{"gold":1,"silver":1,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Ding Ning","country":"China","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2012":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Kong Linghui","country":"China","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Li Ju","country":"China","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Chen Qi","country":"China","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Ma Long","country":"China","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Yan Sen","country":"China","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Dmitrij Ovtcharov","country":"Germany","medals":{"gold":0,"silver":1,"bronze":2,"total":3},"medals_by_year":{"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":0,"silver":0,"bronze":2,"total":2}}}]

View file

@ -0,0 +1 @@
{"sport": "Archery", "limit": 9}

View file

@ -0,0 +1 @@
[{"athlete":"Park Seong-Hyeon","country":"South Korea","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Yun Mi-Jin","country":"South Korea","medals":{"gold":3,"silver":0,"bronze":0,"total":3},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Lee Seong-Jin","country":"South Korea","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Marco Galiazzo","country":"Italy","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Park Gyeong-Mo","country":"South Korea","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Im Dong-Hyeon","country":"South Korea","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Jang Yong-Ho","country":"South Korea","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Ki Bo-Bae","country":"South Korea","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Zhang Juanjuan","country":"China","medals":{"gold":1,"silver":2,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":1,"silver":1,"bronze":0,"total":2}}}]

View file

@ -0,0 +1 @@
{"sport": "Volleyball", "limit": 8}

View file

@ -0,0 +1 @@
[{"athlete":"Fabi","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Fabiana","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Paula","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Pereira de Carvalho Endres Jaque","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Sheilla","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Thaísa","country":"Brazil","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Dante","country":"Brazil","medals":{"gold":1,"silver":2,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Giba","country":"Brazil","medals":{"gold":1,"silver":2,"bronze":0,"total":3},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}}]

View file

@ -0,0 +1 @@
{"sport": "Diving", "limit": 8}

View file

@ -0,0 +1 @@
[{"athlete":"Guo Jingjing","country":"China","medals":{"gold":4,"silver":2,"bronze":0,"total":6},"medals_by_year":{"2000":{"gold":0,"silver":2,"bronze":0,"total":2},"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Wu Minxia","country":"China","medals":{"gold":4,"silver":1,"bronze":1,"total":6},"medals_by_year":{"2004":{"gold":1,"silver":1,"bronze":0,"total":2},"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Chen Ruolin","country":"China","medals":{"gold":4,"silver":0,"bronze":0,"total":4},"medals_by_year":{"2008":{"gold":2,"silver":0,"bronze":0,"total":2},"2012":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Qin Kai","country":"China","medals":{"gold":2,"silver":1,"bronze":1,"total":4},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Tian Liang","country":"China","medals":{"gold":2,"silver":1,"bronze":1,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":1,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":1,"total":2}}},{"athlete":"Xiong Ni","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Yuliya Pakhalina","country":"Russia","medals":{"gold":1,"silver":3,"bronze":1,"total":5},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":0,"silver":1,"bronze":1,"total":2},"2008":{"gold":0,"silver":2,"bronze":0,"total":2}}},{"athlete":"Dmitry Sautin","country":"Russia","medals":{"gold":1,"silver":2,"bronze":3,"total":6},"medals_by_year":{"2000":{"gold":1,"silver":1,"bronze":2,"total":4},"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}}]

View file

@ -0,0 +1 @@
{"sport": "Badminton", "limit": 1}

View file

@ -0,0 +1 @@
[{"athlete":"Gao Ling","country":"China","medals":{"gold":2,"silver":1,"bronze":1,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":1,"total":2},"2004":{"gold":1,"silver":1,"bronze":0,"total":2}}}]

View file

@ -0,0 +1 @@
{"sport": "Taekwondo", "limit": 10}

View file

@ -0,0 +1 @@
[{"athlete":"Hadi Saei","country":"Iran","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2000":{"gold":0,"silver":0,"bronze":1,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Hwang Gyeong-Seon","country":"South Korea","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Steven Lopez","country":"United States","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Chen Zhong","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Wu Jingyu","country":"China","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Chu Mu-Yen","country":"Chinese Taipei","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"María Espinoza","country":"Mexico","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Servet Tazegül","country":"Turkey","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2008":{"gold":0,"silver":0,"bronze":1,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Carlo Molfetta","country":"Italy","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Chen Shih-Hsien","country":"Chinese Taipei","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}}]

View file

@ -0,0 +1 @@
{"sport": "Figure Skating", "limit": 5}

View file

@ -0,0 +1 @@
[{"athlete":"Yevgeny Plyushchenko","country":"Russia","medals":{"gold":1,"silver":2,"bronze":0,"total":3},"medals_by_year":{"2002":{"gold":0,"silver":1,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Shen Xue","country":"China","medals":{"gold":1,"silver":0,"bronze":2,"total":3},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":1,"total":1},"2006":{"gold":0,"silver":0,"bronze":1,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Zhao Hongbo","country":"China","medals":{"gold":1,"silver":0,"bronze":2,"total":3},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":1,"total":1},"2006":{"gold":0,"silver":0,"bronze":1,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Aleksey Yagudin","country":"Russia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Anton Sikharulidze","country":"Russia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1}}}]

View file

@ -0,0 +1 @@
{"sport": "Triathlon", "limit": 11}

View file

@ -0,0 +1 @@
[{"athlete":"Simon Whitfield","country":"Canada","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Alistair Brownlee","country":"Great Britain","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Brigitte McMahon","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Emma Snowsill","country":"Australia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Hamish Carter","country":"New Zealand","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Jan Frodeno","country":"Germany","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Kate Allen","country":"Austria","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Nicola Spirig","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Bevan Docherty","country":"New Zealand","medals":{"gold":0,"silver":1,"bronze":1,"total":2},"medals_by_year":{"2004":{"gold":0,"silver":1,"bronze":0,"total":1},"2008":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Javier Gómez","country":"Spain","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Lisa Nordén","country":"Sweden","medals":{"gold":0,"silver":1,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}}]

View file

@ -0,0 +1 @@
{"sport": "Swimming", "limit": 15}

View file

@ -0,0 +1 @@
[{"athlete":"Michael Phelps","country":"United States","medals":{"gold":18,"silver":2,"bronze":2,"total":22},"medals_by_year":{"2004":{"gold":6,"silver":0,"bronze":2,"total":8},"2008":{"gold":8,"silver":0,"bronze":0,"total":8},"2012":{"gold":4,"silver":2,"bronze":0,"total":6}}},{"athlete":"Ryan Lochte","country":"United States","medals":{"gold":5,"silver":3,"bronze":3,"total":11},"medals_by_year":{"2004":{"gold":1,"silver":1,"bronze":0,"total":2},"2008":{"gold":2,"silver":0,"bronze":2,"total":4},"2012":{"gold":2,"silver":2,"bronze":1,"total":5}}},{"athlete":"Ian Thorpe","country":"Australia","medals":{"gold":5,"silver":3,"bronze":1,"total":9},"medals_by_year":{"2000":{"gold":3,"silver":2,"bronze":0,"total":5},"2004":{"gold":2,"silver":1,"bronze":1,"total":4}}},{"athlete":"Aaron Peirsol","country":"United States","medals":{"gold":5,"silver":2,"bronze":0,"total":7},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":3,"silver":0,"bronze":0,"total":3},"2008":{"gold":2,"silver":1,"bronze":0,"total":3}}},{"athlete":"Inge de Bruijn","country":"Netherlands","medals":{"gold":4,"silver":2,"bronze":2,"total":8},"medals_by_year":{"2000":{"gold":3,"silver":1,"bronze":0,"total":4},"2004":{"gold":1,"silver":1,"bronze":2,"total":4}}},{"athlete":"Jason Lezak","country":"United States","medals":{"gold":4,"silver":2,"bronze":2,"total":8},"medals_by_year":{"2000":{"gold":1,"silver":1,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":1,"total":2},"2008":{"gold":2,"silver":0,"bronze":1,"total":3},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Matt Grevers","country":"United States","medals":{"gold":4,"silver":2,"bronze":0,"total":6},"medals_by_year":{"2008":{"gold":2,"silver":1,"bronze":0,"total":3},"2012":{"gold":2,"silver":1,"bronze":0,"total":3}}},{"athlete":"Kosuke Kitajima","country":"Japan","medals":{"gold":4,"silver":1,"bronze":2,"total":7},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":1,"total":3},"2008":{"gold":2,"silver":0,"bronze":1,"total":3},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Libby Lenton-Trickett","country":"Australia","medals":{"gold":4,"silver":1,"bronze":2,"total":7},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":1,"total":2},"2008":{"gold":2,"silver":1,"bronze":1,"total":4},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Yana Klochkova","country":"Ukraine","medals":{"gold":4,"silver":1,"bronze":0,"total":5},"medals_by_year":{"2000":{"gold":2,"silver":1,"bronze":0,"total":3},"2004":{"gold":2,"silver":0,"bronze":0,"total":2}}},{"athlete":"Missy Franklin","country":"United States","medals":{"gold":4,"silver":0,"bronze":1,"total":5},"medals_by_year":{"2012":{"gold":4,"silver":0,"bronze":1,"total":5}}},{"athlete":"Dana Vollmer","country":"United States","medals":{"gold":4,"silver":0,"bronze":0,"total":4},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":3,"silver":0,"bronze":0,"total":3}}},{"athlete":"Lenny Krayzelburg","country":"United States","medals":{"gold":4,"silver":0,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":3,"silver":0,"bronze":0,"total":3},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Leisel Jones","country":"Australia","medals":{"gold":3,"silver":5,"bronze":1,"total":9},"medals_by_year":{"2000":{"gold":0,"silver":2,"bronze":0,"total":2},"2004":{"gold":1,"silver":1,"bronze":1,"total":3},"2008":{"gold":2,"silver":1,"bronze":0,"total":3},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Natalie Coughlin","country":"United States","medals":{"gold":3,"silver":4,"bronze":5,"total":12},"medals_by_year":{"2004":{"gold":2,"silver":2,"bronze":1,"total":5},"2008":{"gold":1,"silver":2,"bronze":3,"total":6},"2012":{"gold":0,"silver":0,"bronze":1,"total":1}}}]

View file

@ -0,0 +1 @@
{"sport": "Boxing", "limit": 9}

View file

@ -0,0 +1 @@
[{"athlete":"Zou Shiming","country":"China","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Aleksey Tishchenko","country":"Russia","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Guillermo Rigondeaux","country":"Cuba","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Mario Kindelán","country":"Cuba","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Vasyl Lomachenko","country":"Ukraine","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Roberto Cammarelle","country":"Italy","medals":{"gold":1,"silver":1,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Gaydarbek Gaydarbekov","country":"Russia","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":0,"silver":1,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Manus Boonjumnong","country":"Thailand","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Oleg Saitov","country":"Russia","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":0,"silver":0,"bronze":1,"total":1}}}]

View file

@ -0,0 +1 @@
{"sport": "Snowboarding", "limit": 14}

View file

@ -0,0 +1 @@
[{"athlete":"Philipp Schoch","country":"Switzerland","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Seth Wescott","country":"United States","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Shaun White","country":"United States","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Hannah Teter","country":"United States","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Kelly Clark","country":"United States","medals":{"gold":1,"silver":0,"bronze":1,"total":2},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Daniela Meuli","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Isabelle Blanc","country":"France","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Jasey-Jay Anderson","country":"Canada","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Maëlle Ricker","country":"Canada","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Nicolien Sauerbreij","country":"Netherlands","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Ross Powers","country":"United States","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Tanja Frieden","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Torah Bright","country":"Australia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Danny Kass","country":"United States","medals":{"gold":0,"silver":2,"bronze":0,"total":2},"medals_by_year":{"2002":{"gold":0,"silver":1,"bronze":0,"total":1},"2006":{"gold":0,"silver":1,"bronze":0,"total":1}}}]

View file

@ -0,0 +1 @@
{"sport": "Luge", "limit": 3}

View file

@ -0,0 +1 @@
[{"athlete":"Armin Zöggeler","country":"Italy","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Andreas Linger","country":"Austria","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Sylke Otto","country":"Germany","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}}]

View file

@ -0,0 +1 @@
{"sport": "Canoeing", "limit": 6}

View file

@ -0,0 +1 @@
[{"athlete":"Katrin Wagner-Augustin","country":"Germany","medals":{"gold":4,"silver":1,"bronze":1,"total":6},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":1,"total":2},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Katalin Kovács","country":"Hungary","medals":{"gold":3,"silver":5,"bronze":0,"total":8},"medals_by_year":{"2000":{"gold":0,"silver":2,"bronze":0,"total":2},"2004":{"gold":1,"silver":1,"bronze":0,"total":2},"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Natasa Douchev-Janics","country":"Hungary","medals":{"gold":3,"silver":2,"bronze":1,"total":6},"medals_by_year":{"2004":{"gold":2,"silver":0,"bronze":0,"total":2},"2008":{"gold":1,"silver":1,"bronze":0,"total":2},"2012":{"gold":0,"silver":1,"bronze":1,"total":2}}},{"athlete":"Birgit Fischer-Schmidt","country":"Germany","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Zoltán Kammerer","country":"Hungary","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2000":{"gold":2,"silver":0,"bronze":0,"total":2},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Pavol Hochschorner","country":"Slovakia","medals":{"gold":3,"silver":0,"bronze":1,"total":4},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2004":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":0,"silver":0,"bronze":1,"total":1}}}]

View file

@ -0,0 +1 @@
{"sport": "Luge", "limit": 4}

View file

@ -0,0 +1 @@
[{"athlete":"Armin Zöggeler","country":"Italy","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Andreas Linger","country":"Austria","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Sylke Otto","country":"Germany","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Wolfgang Linger","country":"Austria","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}}]

View file

@ -0,0 +1 @@
{"sport": "Triathlon", "limit": 5}

View file

@ -0,0 +1 @@
[{"athlete":"Simon Whitfield","country":"Canada","medals":{"gold":1,"silver":1,"bronze":0,"total":2},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1},"2008":{"gold":0,"silver":1,"bronze":0,"total":1}}},{"athlete":"Alistair Brownlee","country":"Great Britain","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Brigitte McMahon","country":"Switzerland","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2000":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Emma Snowsill","country":"Australia","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Hamish Carter","country":"New Zealand","medals":{"gold":1,"silver":0,"bronze":0,"total":1},"medals_by_year":{"2004":{"gold":1,"silver":0,"bronze":0,"total":1}}}]

View file

@ -0,0 +1 @@
{"sport": "Speed Skating", "limit": 14}

View file

@ -0,0 +1 @@
[{"athlete":"Claudia Pechstein","country":"Germany","medals":{"gold":3,"silver":1,"bronze":0,"total":4},"medals_by_year":{"2002":{"gold":2,"silver":0,"bronze":0,"total":2},"2006":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Anni Friesinger-Postma","country":"Germany","medals":{"gold":3,"silver":0,"bronze":1,"total":4},"medals_by_year":{"2002":{"gold":1,"silver":0,"bronze":0,"total":1},"2006":{"gold":1,"silver":0,"bronze":1,"total":2},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Shani Davis","country":"United States","medals":{"gold":2,"silver":2,"bronze":0,"total":4},"medals_by_year":{"2006":{"gold":1,"silver":1,"bronze":0,"total":2},"2010":{"gold":1,"silver":1,"bronze":0,"total":2}}},{"athlete":"Jochem Uytdehaage","country":"Netherlands","medals":{"gold":2,"silver":1,"bronze":0,"total":3},"medals_by_year":{"2002":{"gold":2,"silver":1,"bronze":0,"total":3}}},{"athlete":"Enrico Fabris","country":"Italy","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2006":{"gold":2,"silver":0,"bronze":1,"total":3}}},{"athlete":"Ireen Wüst","country":"Netherlands","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":1,"total":2},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Martina Sáblíková","country":"Czech Republic","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2010":{"gold":2,"silver":0,"bronze":1,"total":3}}},{"athlete":"Daniela Anschütz-Thoms","country":"Germany","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2006":{"gold":1,"silver":0,"bronze":0,"total":1},"2010":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Cindy Klassen","country":"Canada","medals":{"gold":1,"silver":2,"bronze":3,"total":6},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":1,"total":1},"2006":{"gold":1,"silver":2,"bronze":2,"total":5}}},{"athlete":"Chad Hedrick","country":"United States","medals":{"gold":1,"silver":2,"bronze":2,"total":5},"medals_by_year":{"2006":{"gold":1,"silver":1,"bronze":1,"total":3},"2010":{"gold":0,"silver":1,"bronze":1,"total":2}}},{"athlete":"Sabine Völker","country":"Germany","medals":{"gold":1,"silver":2,"bronze":1,"total":4},"medals_by_year":{"2002":{"gold":0,"silver":2,"bronze":1,"total":3},"2006":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Stephanie Beckert","country":"Germany","medals":{"gold":1,"silver":2,"bronze":0,"total":3},"medals_by_year":{"2010":{"gold":1,"silver":2,"bronze":0,"total":3}}},{"athlete":"Clara Hughes","country":"Canada","medals":{"gold":1,"silver":1,"bronze":2,"total":4},"medals_by_year":{"2002":{"gold":0,"silver":0,"bronze":1,"total":1},"2006":{"gold":1,"silver":1,"bronze":0,"total":2},"2010":{"gold":0,"silver":0,"bronze":1,"total":1}}},{"athlete":"Sven Kramer","country":"Netherlands","medals":{"gold":1,"silver":1,"bronze":2,"total":4},"medals_by_year":{"2006":{"gold":0,"silver":1,"bronze":1,"total":2},"2010":{"gold":1,"silver":0,"bronze":1,"total":2}}}]

View file

@ -0,0 +1 @@
{"sport": "Hockey", "limit": 8}

View file

@ -0,0 +1 @@
[{"athlete":"Christopher Zeller","country":"Germany","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Matthias Witthaus","country":"Germany","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Timo Weß","country":"Germany","medals":{"gold":2,"silver":0,"bronze":1,"total":3},"medals_by_year":{"2004":{"gold":0,"silver":0,"bronze":1,"total":1},"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Benjamin Weß","country":"Germany","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Ellen Hoog","country":"Netherlands","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Eva de Goede","country":"Netherlands","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Lidewij Welten","country":"Netherlands","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}},{"athlete":"Maartje Goderie","country":"Netherlands","medals":{"gold":2,"silver":0,"bronze":0,"total":2},"medals_by_year":{"2008":{"gold":1,"silver":0,"bronze":0,"total":1},"2012":{"gold":1,"silver":0,"bronze":0,"total":1}}}]

Some files were not shown because too many files have changed in this diff Show more