cua_shortlink
v1.1.6
Published
short link url website
Downloads
3
Readme
Short Link V1.0.6
using
- update...
API URL
- Create New Link: (POST) /v1/short/create
- request
{
"link": "https://www.facebook.com/56",
"password": ""
}
- reponse
{
"status": true,
"message": "Link Success!",
"data": {
"originUrl": "https://www.facebook.com/56",
"shortUrl": "http://localhost:3300/srJ3UhW",
"totalView": 0
}
}
- Show All Link: (GET) /v1/short/all
- reponse
{
"status": true,
"message": "Get Data Success",
"data": [
{
"_id": "62486f008065f209f1d923a6",
"originUrl": "https://www.facebook.com/5",
"shortUrl": "4bnrlHp",
"__v": 0,
"deletedAt": null,
"updatedAt": null,
"createdAt": 1648914176811,
"totalView": 0,
"passwords": ""
},
{
"_id": "6248703a2a2dfe0c0af6d590",
"originUrl": "https://www.facebook.com/1",
"shortUrl": "iDKkaLP",
"__v": 0,
"deletedAt": null,
"updatedAt": null,
"createdAt": 1648914490891,
"totalView": 0,
"passwords": ""
}
]
}
Delete Short Link: (DELETE) /v1/short/delete/:short
reponse
- success
{ "status": true, "message": "Delete Success" }
- error
{ "status": false, "message": "Short Link Not Found." }
Get Info Short Link: (POST) /v1/short/info
request
{ "shortUrl": "291L5Sd", "password": "" }
reponse
- success
{ "status": true, "message": "Get Success", "data": { "originUrl": "https://www.facebook.com/2", "totalView": 15, "lastViewAt": 1649016787642, "updatedAt": null, "createdAt": 1649016681366 } }
- error
{ "status": false, "message": "Password Error." }
{ "status": false, "message": "Short Link Not Found." }
- success