POST api/Urls?longUrl={longUrl}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| longUrl | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Url| Name | Description | Type | Additional 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": "2025-11-07T20:34:50.259903-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>2025-11-07T20:34:50.259903-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>