POST api/Urls?longUrl={longUrl}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
longUrl

string

Required

Body Parameters

None.

Response Information

Resource Description

Url
NameDescriptionTypeAdditional information
Id

string

None.

DateCreatedUtc

date

None.

IsActive

boolean

None.

LongUrl

string

Required

ShortUrl

string

Required

Hits

integer

Required

Response Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "dateCreatedUtc": "2024-11-24T05:28:27.6750565-06:00",
  "isActive": true,
  "longUrl": "sample string 4",
  "shortUrl": "sample string 5",
  "hits": 6
}

application/xml, text/xml

Sample:
<Url xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shared.Poco.Entities">
  <DateCreatedUtc>2024-11-24T05:28:27.6750565-06:00</DateCreatedUtc>
  <Hits>6</Hits>
  <Id>sample string 1</Id>
  <IsActive>true</IsActive>
  <LongUrl>sample string 4</LongUrl>
  <ShortUrl>sample string 5</ShortUrl>
</Url>