Skip to content

aackerman/lebowski-api

Repository files navigation

A small rails app for serving up information from The Big Lebowski

Routes

/api/script
/api/quotes/random
/api/quotes/search?term=that+poor+woman
/api/quotes/:id
/api/lines/search?term=mountain
/api/lines/random
/api/lines/:id
/api/search?term=mountain # alias for /api/quotes/search

Text format

Append .txt to several routes to receive a text format

/api/quotes/random.txt
/api/quotes/search.txt?term=that+poor+woman
/api/quotes/:id.txt
/api/lines/search.txt?term=mountain
/api/lines/random.txt
/api/lines/:id.txt
/api/search.txt?term=mountain # alias for /api/quotes/search

Random quotes and searching by character name

/api/quotes/random.txt?character=Bunny
/api/quotes/random.txt?character=The+Dude
/api/lines/random.txt?character=The+Dude
/api/lines/search.txt?term=objects&character=The+Dude

Using cURL

$ curl -L http://lebowski.me

CLI client

lebowski

$ npm i -g lebowski

Author

twitter/aaronackerman
Aaron Ackerman

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •