Fetch All Short URL
Fetch All Short URL
Postman Collection
URL
GET: /v1/shortener/fetch/{pageNumber}HEADERS
Params | Value |
---|---|
Authorization | Basic Auth |
Content-Type | application/json |
Accept | application/json |
Query Parameters
Param | Data Type | Required |
---|---|---|
pageNumber | Integer | Optional |
Request
Body Sample
{
"requestId": "REQ473708703373400",
"url": "https://f1m.in/4RaUgTh"
}
cURL Sample
curl --location --request GET '/v1/shortener/fetch/3' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic ZjFtXVhZWY1NTc5ODgxMjg0NzEwZTZkMzM5ODMyYmU2YTJkNjg5'
Response
success
{
"code": "200",
"status": "success",
"message": "URL Info found.",
"data": {
"totalRecords": 23,
"perPageRecords": 10,
"totalPages": 3,
"currentPage": 3,
"urls": [
{
"requestId": "REQ473433918676300",
"label": "URL 1",
"url": "https://f1m.in/9RAUGlU",
"status": 1,
"closedAt": "2022-04-24 20:05:55",
"createdAt": "2022-04-24 18:11:54"
},
{
"requestId": "REQ473708703373400",
"label": "URL 2",
"url": "https://f1m.in/4RaUgTh",
"status": 1,
"closedAt": "2022-04-24 20:05:55",
"createdAt": "2022-04-24 18:16:29"
},
{
"requestId": "REQ473789285007900",
"label": "URL 3",
"url": "https://f1m.in/1RAUgVp",
"status": 1,
"closedAt": null,
"createdAt": "2022-04-24 18:17:49"
}
]
}
}
failed
{
"code": "404",
"status": "failed",
"error": "URL info not found."
}