Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

UUID Service

License

NotificationsYou must be signed in to change notification settings

conortm/uuid-service

Repository files navigation

A simple service forPUTting &GETting UUIDs, provided a key.

This is aGo web service, backed byMongoDB,running onDocker, withComposefor local development.

How to use this image

Start auuid-service instanceand link it to aMongoDB instance:

docker run --name some-uuid-service --link some-mongo:mongo -d conortm/uuid-service

How to use this 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

Docker Compose

Get a local instance up and running with:

docker-compose up -d

Note: Substitutemy-uuid-service.com above withlocalhost.

License

MIT ©Conor McNamara


[8]ページ先頭

©2009-2025 Movatter.jp