- Notifications
You must be signed in to change notification settings - Fork0
conortm/uuid-service
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A simple service forPUT
ting &GET
ting UUIDs, provided a key.
This is aGo web service, backed byMongoDB,running onDocker, withComposefor local development.
Start auuid-service instanceand link it to aMongoDB instance:
docker run --name some-uuid-service --link some-mongo:mongo -d conortm/uuid-service
Once you have the service running athttp://my-uuid-service.com
, do the following:
To create a newUUID
, run:
curl -v -X PUT http://my-uuid-service.com/uuid/my-key
Note: A response status of201 Created
indicates a successfully created UUID.A status of200 OK
indicates that the UUID already exists for the provided key.
To get an existingUUID
, run:
curl -v http://my-uuid-service.com/uuid/my-key
Get a local instance up and running with:
docker-compose up -d
Note: Substitutemy-uuid-service.com
above withlocalhost
.