sketch-city / harvey-api

Harvey Needs API
http://harveyneeds.org
GNU General Public License v3.0
23 stars 39 forks source link

Add v2 for html and api #79

Closed ironcoconut closed 7 years ago

ironcoconut commented 7 years ago

Api and Html controllers need tests. Core location file is tested.

For v2, we can add a file to create a new set of endpoints for an organization.

Instructions are in app/models/location.rb. An example can be found in app/models/location/hurricane_harvey_rescue_dispatchers.rb. All the functionality of shelters or needs, but with dynamic! v2 baby!

Org page:

organization

Main table (like shelters or needs, but dynamically defined):

locations_index

Same with the show page:

location_show

jwo commented 7 years ago

Pretty amazing @ironcoconut - It may take a bit to test this out, but I'll try to do this am

ironcoconut commented 7 years ago

Needs (in future update):

ironcoconut commented 7 years ago

we need this. if there are bugs, ping me on slack or call if you have my number.