Skip to content

ethirajsrinivasan/UrlShortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UrlShortner

UrlShortner is an rails application which gives shortened URL from the original URL.

Features

UrlShorner has web front end and api service.

Authentication

Authentication for web front end is through devise and for api service it is through JSON web token

Installation

git clone https://github.com/ethirajsrinivasan/UrlShortner.gito
cd UrlShortner
bundle install
rake db:setup
rake db:migrate
rails server

UrlShortner is up and running

API EndPoint

To get authentication token

http://localhost:3000/authenticate?email=xxxxxxxx@gmail.com&password=xxxxxxx

To get short url

http://localhost:3000/url_shortners/fetch_short_url?url=yahoo.com

To get statistics about short url

http://localhost:3000/url_shortners/:short_url/stats

Note: Include auth token in the header as below

Authorization: 'auth_token'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published