Getir technoical challenge
With Docker:
$ docker build -t getir .
$ docker run -d -it -p 8080:8080 --name getir getir
$ docker pull nedad/challenge:getir
- go test ./...
/fetch | http://18.234.166.11:80/fetch
post request with bellow example
/in-memory | http://18.234.166.11:80/in-memory
get and post as example bellow
URL : /fetch
Method : POST
Data example
{
"startDate": "2016-01-21",
"endDate": "2016-03-02",
"minCount": 2900,
"maxCount": 3000
}
Code : 200
Content example
{
"code": 0,
"msg": "Success",
"records": [
{
"createdAt": "2016-02-19T08:35:39.409+02:00",
"key": "GjhjVIKb",
"totalCount": 2774
}
]
}
URL : /in-memory
Method : POST
Data example
{
"key": "test_key",
"value": "test_value"
}
Code : 201
Content example
{
"key": "test_key",
"value": "test_value"
}
GET /in-memory
URL : /in-memory?key={test_key}
Method : GET
Code : 200
Content example
{
"key": "test_key",
"value": "test_value"
}