API DOCUMENTATION
1) curl -d ‘{ “greenbean”: { “name”: “acme”, “starbucks”: “true”, “image”: “123b” } }’ greenbeanrecycle.herokuapp.com/greenbean –header “Content-Type: application/json”
Endpoint is greenbeanrecycle.herokuapp.com/greenbean Remember to specify JSON content-type Image needs to be base64 encoded string
HEROKU
1) Heroku remote address: [email protected]:greenbeanrecycle.git
2) To push to heroku: git push heroku master
3) To access rails console: heroku run rails c