GET api/NewOrderedId/sqlserver

/api/NewOrderedId/sqlserver

Creates a new time-ordered 16-byte ID with the UUID format, which is ordered for the uniqueidentifier data type of the SQL Server.
The lower 8 bytes represent ticks of date/time (by 10-7 second) and the other 8 bytes are randomly generated.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A pair of the ID and the created date/time.

GuidWithDateTime
NameDescriptionTypeAdditional information
Guid

globally unique identifier

None.

DateTime

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Guid": "60a1d43a-066d-0b76-ca95-08dc6531f7f2",
  "DateTime": "2024-04-25T14:14:06.7454613Z"
}