idservice
Returns unique version ids via various protocols.
HTTP example
% idservice http -p :8000 -w /path/to/workdir
To use, the client sends a POST request with an optional count:
POST /v1/id
Returns application/json:
{"id":1}
POST /v1/id?count=10
Returns application/json:
{"ids":[1,10]}
Installation
If you have Go installed, you can install idservice
with:
% go install github.com/JaneliaSciComp/idservice@latest
Or you can build from source:
% go get github.com/JaneliaSciComp/idservice
% go build
% idservice --help