Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 511 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 511 Bytes

FuturamaQuotes

An OTP-application demonstrating how to handle state. An Agent keeps a list of Futurama-quotes and the Server-module implements the logic tied to the routes below.

The routes are:

GET / #=> Get all quotes
GET /quote #=> Same as above
GET /quote/random #=> Get a random quote
GET /quote/:id #=> Get by index in quote list
GET /quote/regex/:regex #=> Get quote matching :regex
GET /quote/by/:person #=> Get quotes featuring :person
POST /quote #=> Save a new quote