https://github.com/aackerman/lebowski-api
Big Lebowski API
https://github.com/aackerman/lebowski-api
Last synced: 12 months ago
JSON representation
Big Lebowski API
- Host: GitHub
- URL: https://github.com/aackerman/lebowski-api
- Owner: aackerman
- License: mit
- Created: 2013-07-21T00:52:49.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2023-03-08T19:46:01.000Z (over 3 years ago)
- Last Synced: 2024-04-15T03:02:16.661Z (about 2 years ago)
- Language: Ruby
- Homepage: lebowski.me
- Size: 295 KB
- Stars: 21
- Watchers: 3
- Forks: 8
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [lebowski.me](http://lebowski.me) [](https://travis-ci.org/aackerman/lebowski-api) [](https://codeclimate.com/github/aackerman/lebowski-api)
A small rails app for serving up information from [The Big Lebowski](http://en.wikipedia.org/wiki/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
```bash
$ curl -L http://lebowski.me
```
## CLI client
[lebowski](https://github.com/aackerman/lebowski)
```bash
$ npm i -g lebowski
```
## Author
| [](http://twitter.com/_aaronackerman_ "Follow @_aaronackerman_ on Twitter") |
|---|
| [Aaron Ackerman](https://twitter.com/_aaronackerman_) |