REST server that feeds the mobile-ui
Find a file
Bart Akeley 7af08e122b new /addfooditem route handler, query
*needs re-run of ddl
2018-02-10 11:49:54 -06:00
scripts new /addfooditem route handler, query 2018-02-10 11:49:54 -06:00
src/aretherecookies new /addfooditem route handler, query 2018-02-10 11:49:54 -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 require facebook auth for updating quantities 2018-01-27 17:09:59 -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