REST server that feeds the mobile-ui
Find a file
2018-12-15 12:27:23 -06:00
scripts search term in filter for food items 2018-06-03 12:25:33 -05:00
src/aretherecookies consider empty string as missing when creating food item 2018-12-15 12:27:23 -06:00
test/aretherecookies support ordering and filtering from request body 2017-11-05 13:35:30 -06:00
.gitignore require facebook auth for updating quantities 2018-01-27 17:09:59 -06:00
Procfile move app config to separate module with main 2017-10-30 20:34:16 -05:00
project.clj /addImage endpoint 2018-03-04 09:01:23 -06:00
README.md require facebook auth for updating quantities 2018-01-27 17:09:59 -06:00
sample-food-item-post.json quantity endpoint 2017-11-26 19:46:55 -06:00
sample-quantity-post.json quantity endpoint 2017-11-26 19:46:55 -06:00

aretherecookies

the server that knows where the cookies are

Prerequisites

You will need Leiningen 2.0.0 or above installed.

Running

To start a web server for the application, run:

lein ring server-headless

To test a request/response, run:

curl --data @sample-food-item-post.json \
    --header "Content-Type: application/json" \
    http://localhost:3000/fooditems

curl --data @sample-quantity-post.json \
    --header "Content-Type: application/json" \
    --header "authorization: facebook-token <paste fb token>" \
    http://localhost:3000/quantity