Rocket Fortune

API Organization

This service, in addition to the human-readable frontend, has an API which exposes 3 endpoints:

JSON Representations

The JSON representation of a quote is very straightforward. It contains three keys:

Sample curl Commands

curl is a convenient tool for interacting with APIs. This command would add a quote to the database, for instance:

curl -i -X POST -H 'Content-Type: application/json' -d '{"quote":"A Quote with a Source", "author":"Author M. Name", "source":"ISBN: 31337000000"}' http://localhost:8000/json/add

Rocket | My Blog | JSON API | All Quotes | Submit