Very simple uuid generator as a service
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
implementation
interfaces
.gitignore
LICENSE
README.md
bindata_assetfs.go
main.go

README.md

uuid-service

Very simple uuid generator as a service

Defaults to port 3000

Install

Using go get

go get github.com/jesusrmoreno/uuid-service
uuid-service --port="8080" --dbPath="databasePath"

From release

Download the version for your OS from the releases page. Releases

#API

Get a new ID

/new/uuid_v4
/new/squid
/new/simplesquid

Returns a new UUID and saves it under the provided namespace

/{namespace}/new/uuid_v4
/{namespace}/new/squid
/{namespace}/new/simplesquid

Returns all ids in the given namespace

/{namespace}/

Returns a new UUID and saves it under the provided namespace

/{namespace}/id
/{namespace}/squid

Returns true if an id exists under that namespace

/{namespace}/contains/{uuid}