Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blaketarter/pickups

Ever wanted a good pickup but couldn't find a good resource? Well you're in luck, Pickups As A Service (PaaS) allows anybody to be a pickup master.
https://github.com/blaketarter/pickups

Last synced: 16 days ago
JSON representation

Ever wanted a good pickup but couldn't find a good resource? Well you're in luck, Pickups As A Service (PaaS) allows anybody to be a pickup master.

Awesome Lists containing this project

README

        

#Pickups As A Service (PaaS)

Make sure to populate the database by running `aquire.js`.

##Endpoints

* `/api/random`
Returns a random pickup line

`?category=$category` - Can filter possibilities by category

* `/api/pickups`
Returns all pickups

`?category=$category` - Can filter by category

##Categories
* `top`
* `jokes`
* `cheesy`
* `flattering`
* `funny`
* `suggestive`

##Example Call

`/api/random?category=funny`

{
_id: "54ee96d1603653466d0e1297",
category: "funny",
text: "It's a good thing I wore my gloves today; otherwise, you'd be too hot to handle.",
rating: 276,
__v: 0
}