-
Notifications
You must be signed in to change notification settings - Fork 1
DeveloperDoc
Joe Nicosia edited this page Jun 20, 2014
·
1 revision
MongoDB Collection Schemas
_id (string)
last_updated (int)
last_updated_openhmis (int)
program_type (string)
program_key (string)
hmis_program (string)
target_pop_a_name (string)
admin_pin (string)
admin_code (string)
user_pin (string)
va_status (string)
contact_name (string)
email_address (string)
name_1 (string)
name_2 (string)
full_address (string)
street_1 (string)
street_2 (string)
city (string)
state (string)
zipcode (string)
location [lat, lng] (double)
phone (string)
url (string)
hours (string)
notes (string)
beds (int)
beds_total (int)
beds_occupied (int)
resource_type (string)
Possible resource types:
shelter
medical
food
hotline
social
legal
employment
other
*job
_id (string)
resource_id (string)
datetime (int)
destination (string)
kind (string)
_id (string)
datetime (int)
from_number (string)
text_content (string)
response_content (string)
Get a list of resource objects.
*beds* will only be returned if resource is a shelter.
GET
/api/resource/list
kind : string
lat : string
lng : string
radius : string
{Resource Object} : Array
Get a resource object.
*beds* will only be returned if resource is a shelter.
GET
/api/resource/get
resource_id : string
{Resource Object} : Single
Displays admin view
Update bed availability
Create new shelter resource
Create new job posting
Handle inbound SMS query
GET
/api/resource/sms_inbound
From : string
Body : string
Handle inbound voice call
GET
/api/resource/voice_inbound
From : string
Query locations based on touch-tone zipcode input
GET
/api/resource/voice_zipcode
From : string
Home View
Display resources
Display single resource
Display admin view
Update bed availability
Create new shelter resource
Location services failed
Query for local resources
Create new job posting
Display outreach view
Query client data
Create new client