Skip to content

A small application that can generate / persist / lookup short codes for a given URL

License

Notifications You must be signed in to change notification settings

JonathanGiles/azure-functions-java-shortcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Functions & Java URL Shortener

A small Azure Function project that can generate / persist / lookup short codes for a given URL.

Provides two functions that can be called:

shortcode

Accepted as a POST call, expects a url query string representing the URL to be turned into a shortcode. Returns status code 200 when successful, with the body being the full short url, e.g. http://jogil.es/7a

An optional shortcode query string may also be supplied, to suggest a preferred shortcode.

redirect

Accepted as a GET call, expects a shortcode query string representing the short code to be turned into the (previously stored) long url. Returns status code 302 with a Location response header pointing to the long url.

What are Azure Functions?

Azure Functions is the name for the 'serverless' offering on the Azure cloud service. There are APIs for many languages, but this test application makes use of the Java APIs. Here are some handy link:

About

A small application that can generate / persist / lookup short codes for a given URL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published