This repository provides a small server to provide you with mock data for the ING-DiBa data challenge at bothack.berlin.
Request: GET /atms/zipcode/12524
Response:
{
"type": "list.atm",
"data": [
{
"bigger_location": "Wegedorn-Zentrum",
"zipcode": "12524",
"city": "Berlin",
"street": "Semmelweißstraße 105",
"location": "Outdoor Eingangsbereich",
"type": "atm"
}
]
}
Request: GET /users/12524
Response:
{
"type": "user",
"id": "12524",
"firstname": "Karolina",
"lastname": "Schindzielorz",
"account_number": "FR1420041010050500013M02606",
"giro_card_number": 4266045139013584,
"visa_card_number": 4684405558678853
}
Request: GET /users/12524/transactions
(number of transactions in example truncated)
{
"type": "list.transaction",
"data": [
{
"type": "transaction",
"card_type": "visa",
"card_number": 4684405558678853,
"withdrawl_at": "2016-01-03T03:39:12.000Z",
"withdrawl_amount": 75
},
{
"type": "transaction",
"card_type": "visa",
"card_number": 4684405558678853,
"withdrawl_at": "2016-01-10T14:04:20.000Z",
"withdrawl_amount": 45
},
{
"type": "transaction",
"card_type": "visa",
"card_number": 4684405558678853,
"withdrawl_at": "2016-01-20T09:36:01.000Z",
"withdrawl_amount": 125
}
]
}
Clone this repo and run:
yarn # or your classic `npm install`
node bin/server