POST api/getshortUrl
Request Information
URI Parameters
None.
Body Parameters
shortUrl| Name | Description | Type | Additional information |
|---|---|---|---|
| url_long | string |
None. |
|
| cdn_prefix | string |
None. |
|
| exp_time | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"url_long": "sample string 1",
"cdn_prefix": "sample string 2",
"exp_time": 3
}
application/xml, text/xml
Sample:
<shortUrl xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Schd_Message_Application.Controllers"> <cdn_prefix>sample string 2</cdn_prefix> <exp_time>3</exp_time> <url_long>sample string 1</url_long> </shortUrl>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ShortUrlResultModel| Name | Description | Type | Additional information |
|---|---|---|---|
| url_short | string |
None. |
|
| url_long | string |
None. |
|
| exp_tag | string |
None. |
|
| exp_days | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"url_short": "sample string 1",
"url_long": "sample string 2",
"exp_tag": "sample string 3",
"exp_days": 4
}
application/xml, text/xml
Sample:
<ShortUrlResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Schd_Message_Application.Controllers"> <exp_days>4</exp_days> <exp_tag>sample string 3</exp_tag> <url_long>sample string 2</url_long> <url_short>sample string 1</url_short> </ShortUrlResultModel>