POST api/UrlShortener/GetOriginalUrl
根據短網址取得原始網址
Request Information
URI Parameters
None.
Body Parameters
短網址代碼
ShortUrlMappingParameter| Name | Description | Type | Additional information |
|---|---|---|---|
| ShortCode |
短網址代碼 |
string |
None. |
| Ticket |
身份票據 |
string |
Required |
Request Formats
application/json, text/json
Sample:
{
"ShortCode": "sample string 1",
"Ticket": "sample string 2"
}
text/html
Sample:
{"ShortCode":"sample string 1","Ticket":"sample string 2"}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
根據短網址取得原始網址
ShortUrlMappingOutputModel| Name | Description | Type | Additional information |
|---|---|---|---|
| status | ResultStatus |
None. |
|
| message | string |
None. |
|
| originalUrl | string |
None. |
|
| ticketVerified |
驗證是否通過 |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": 0,
"message": "sample string 1",
"originalUrl": "sample string 2",
"ticketVerified": true
}
text/html
Sample:
{"status":0,"message":"sample string 1","originalUrl":"sample string 2","ticketVerified":true}