Skip to content

seamirage/UrlShortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UrlShortener

REST-service that provides the URL shortening/expanding functionality like bit.ly.

#REST interface

##GET /shorten Shortens specified URL.
Parameters:
url: URL-encoded long url
Example: /shorten?url=https%3A%2F%2Fgoogle.ru%2Fsearch%3Fq%3Durl%2Bshortener
Return code: 200 if OK, 50X on error

##GET /
Expands shortened URL.
Path: if not equals “/shorten” - will be treated as a short URL
Effect: redirection to original URL
Return code: 301, Location="original_url"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors