Badge Cache Sample
npm test
3120
var port = normalizePort(process.env.PORT || '3120');
app.set('port', port);
GET /
Response
[
{
"clientId": "test-client",
"total": 123,
"sourceOne": 123,
"sourceTwo": 0
}
]
GET /:clientId
Response
{
"clientId": "test-client",
"total": 234,
"sourceOne": 123,
"sourceTwo": 111
}
POST /:clientId
{
'source': "SourceOne",
'count': 123
}
Response
{
"clientId": "test-client",
"total": 234,
"sourceOne": 123,
"sourceTwo": 111
}