mahinm20 / url-shortner

Created a URL Shortner Service Usind Django and DRF.
0 stars 0 forks source link

infracloud-url-shortner

Created a URL Shortner Service Using Django and DRF.

This is a URL Shortner App created using Django and DRF.

Start the Server using 'python manage.py runserver'

Open a browser and type http://127.0.0.1:8000/

Go to http://127.0.0.1:8000/api/

Here you will see the list of all the present Urls with their shortenred links respectively

If you go to http://127.0.0.1:8000/api/create, you can create a new short link for your urls

Once create, go to the shortened URL and it will redirect you to the original url

If you want to test the API using curl command use the below format

curl -X POST http://127.0.0.1:8000/api/create/ --form original_url=any url/

Eg :-curl -X POST http://127.0.0.1:8000/api/create/ --form original_url=https://www.youtube.com/