The Backend for the Lambda School Build Weeks Project, build with Node and Express. September, 2019
API Documentation : http://replate.docs.lambdaschool.me alternate URL : https://documenter.getpostman.com/view/7448226/SVn2PbQL
BASE_URL = http://replate.api.lambdaschool.me alternate URL : http://0bbfee1e.ngrok.io
/locations
available methods: GET, POST
{
"location": "san jose"
}
/auth/login
post
sample request object :
{
"username" : "user1",
"password": pass
}
returns the user object with a JWT token.
/auth/register
POST
sample request object :
{
"restaurant_name" : "wendy's
"username" : "wendy",
"password": pass
}
{
"volunteer_name" : "Johnny"
"username" : "wendy",
"password": pass
}
/locations/:id available methods: GET, PUT, DELETE
/restaurants
available methods: GET, POST
{
"restaurant_name" : "Flower Child"
}
/restaurants/:id available methods: GET, PUT, DELETE
/volunteers available methods: GET, POST, PUT, DELETE
/volunteers/:id available methods: GET, PUT, DELETE
/pickups available methods : GET, POST, PUT, DELETE
/pickups/:id available methods : GET, PUT, DELETE
/nonprofits available methods : GET, POST, PUT, DELETE
/nonprofits/:id available methods : GET, PUT, DELETE