GrURL

A simple URL shortening API with Grape and Redis.

3
0
3
Ruby
public

GrURL

A simple URL shortening API built with Grape. Backed by Redis. Reads and writes are as fast as 30ms on my quad core Macbook.

Endpoints

  • POST: ‘/’ Takes url and key 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.

Installing

$ bundle install

$ rackup

v0.3.3[beta]