APIbunny was launched on Friday 18th April 2014 to celebrate Easter in a geeky manner. Hackers were asked to solve a maze using an Hypermedia API to claim a prize.
Find the whole story on 3scale blog
How does it work
Maze data are stored in
fortune_init.js launch the API with no restrictions
mazes.js reads the info from maze data file and call the API to create the maze in database
fortune.js launch the protected version of the API.
By default we use
nedb check the Fortune.js documentation to change it.
Databases are stored in
To track calls in the API we use Keen.io Analytics API. In
config.js you will need to add your Keen.io keys to make it work.
You will also have to change
privateKey variable to your own, it's used to generate a hash when users have finished the maze.
In this config file you can also configure the baseUrl of your API or the port where it will be available.
git clone https://github.com/picsoung/apibunny.git cd apibunny npm install node fortune_init.js
in another terminal to create the maze
Kill init and launch the "protected" version
In the community people have built their own client, thanks to them for sharing