Skip to content

Pankajchandan/team_4

Repository files navigation

Drive4good

APIs

Get Deficit items to view what Items are needed and in what quantity

GET http://drive4good-surprised-antelope.mybluemix.net/get_items

Donate Items

POST http://drive4good-surprised-antelope.mybluemix.net/donate_item
Body:
{ "d_name": "Sam Johnson", "d_phone": "213213212", "addr": "1 Washington Sq San Jose, CA 95116", "items": { "bedsheets": "1", "mineral water": "1", "scarfs": "1", "sugar": "1", "comforter": "1", "pillow": "1" } }

Driver View addresses to pickup from

POST http://drive4good-surprised-antelope.mybluemix.net/driver_see_pickups
Body:
{ "addr":"428 S 11th Street, San Jose, CA" }

Driver picks up items and the inventory gets updated

POST http://drive4good-surprised-antelope.mybluemix.net/pickup_item Body:
{ "scheduled_pickups": [ { "doner_id":"12345", "scheduled_pickup": "xxxxx" } ] }

compute_resource

POST http://drive4good-surprised-antelope.mybluemix.net/compute_resource Body:
{ "disasters": [ { "disaster_type": "hurricane", "category": "category 1", "population": "10000" } ] }

Deployment and monitoring

Deployed as a service on IBM cloud foundry
ELK for log management and seraching
Availibility Monitoring for availibility and alerting

About

Call for code sjsu

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages