A url shortener API
https://ikzi.ml make use of this API. Developed by my web developer friend, goriio.
https://short-url-webapp.herokuapp.com/
/shorten
GET/POST: https://short-url-webapp.herokuapp.com/shorten?url=www.google.com
Response
{
"apiVersion":"0.0.1",
"data":{
"urlCode":"dQJken_i",
"longUrl":"https://www.google.com",
"shortUrl":"https://short-url-webapp.herokuapp.com/dQJken_i",
"date":"2022-06-21T14:54:28.525Z"
}
}
/info
This gets the information about the link. This requires a 'code' query parameter having the short url code.
Example: https://short-url-webapp.herokuapp.com/thisisacode → Code: thisisacode
GET/POST: https://short-url-webapp.herokuapp.com/info?code=www.google.com
Response
{
"apiVersion":"0.0.1",
"data":{
"urlCode":"dQJken_i",
"longUrl":"https://www.google.com",
"shortUrl":"https://short-url-webapp.herokuapp.com/dQJken_i",
"date":"2022-06-21T14:54:28.525Z"
}
}
- Custom error response
- Home Page
- Custom Domain
See the open issues for a full list of proposed features (and known issues).
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- Author - Joseph
- Website - https://kathulhur.github.io/portfolio/
- Twitter - @kathulhu_dev
Distributed under the MIT License. See LICENSE.txt
for more information.
Joseph - josephkarl19@gmail.com
Project Link: https://github.com/kathulhur/url-shortener