A simple URL shortening API built with Grape. Backed by Redis. Reads and writes are as fast as 30ms on my quad core Macbook.
- POST: '/' Takes
url
andkey
as paramaters, with the key being optional. If the key is not provided, it will create a unique one. - GET '/:key' Redirects to the long URL.
- GET ':key/info' Find info including click count.
$ bundle install
$ rackup