Skip to content

NickJosevski/usedguids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##Used Guid Reporting

Ever wondered if that that GUID you're about to use has already been consumed?

No.

Well you should. Check the twitter feed - twitter.com/UsedGuid, and start reporting your usage of GUIDs. It's the right thing to do.

Throw away those old paper based systems.

Nick's complete post on this.

The Code

  • This version of the code runs with Entity Framework
  • Makes use of TweetSharp (which as of 2016 still works)
  • Further upgrades are not available on this public version of the code yet.
  • Please submit bugs, don't get my UsedGuid twitter account banned ;)

Usage

  1. Supply the guid you would like to use/reserve.
  2. Get a response
  • Either
    • 200 ok, you're set.
    • 4xx, 5xx something went wrong, see the response message.

Curl

curl http://usedguids.apphb.com/api/UsedGuid \
    -d Guid="64b798cb-1013-48bb-8f30-474e35fbba7a" \
    -d UsedBy="CurlTest" \

Tech

ASP.NET Web API on AppHarbor, TweetSharp Nuget package

More Usage Samples

Message Sample (e.g. fiddler)

Header:

Content-Type: application/json; charset=utf-8
X-Requested-With: XMLHttpRequest
Host: usedguids.apphb.com

Request Body:

{ "Guid":"64b798cb-1013-48bb-8f30-474e35fbba7a" , "UsedBy":"Your Name" }

jQuery ajax post exmaple:

    $.ajax({
        type: 'POST',
        dataType: 'json',
        contentType: 'application/json; charset=utf-8',
        url: 'http://usedguids.apphb.com/api/UsedGuid',
        data: JSON.stringify({ Guid: '*your_guid*', UsedBy: '*your_name*' })
    });

Releases

No releases published

Packages

No packages published