Open two terminal windows
To run the server:
make run
requires jq
, sed
and xargs
to run the client
make run-client
Client code is just a simple script to POST each command to the api and echo the result.
The API serves only one route:
checksum_path POST /v1/number ChecksumWeb.ChecksumController :process_command
It expects a json with the format above:
{"command": "A123", "id": "some_string"}
id
is optional and if present creates a new checksum sequence apart from the default one.