Public | Automated Build

Last pushed: 9 months ago
Short Description
Microservice for live counter/stats
Full Description

tfk-seneca-counter

Microservice for live counter

Usage

call the service to add a value for a given key

$ curl -d '{"role":"counter", "cmd":"add", "key": "test", "value": 2}' -v http://localhost:8000/act

or to subtract a value for a given key

$ curl -d '{"role":"counter", "cmd":"subtract", "key": "test", "value": 2}' -v http://localhost:8000/act

Lookup a key

$ curl -d '{"role":"counter", "cmd":"get", "key": "test"}' -v http://localhost:8000/act

returns

{success: true, key: 'test', value: 0}

if no key is supplied it will use value as key

Docker Pull Command
Owner
telemark
Source Repository