TFC-ListProject / build-the-list

build the most exhaustive list of campaigns down to the district level
0 stars 1 forks source link

Update routing structure for demo app #28

Closed davitykale-zz closed 7 years ago

davitykale-zz commented 7 years ago

Current:

/state /district/:districtId

Proposed:

/:state /:state/district/:districtId

dbolson commented 7 years ago

@davitykale Do we have a list of the proposed endpoints?

Does this mean we would have endpoints such as

/va // state data
/va/districts/1 // data for Virginia district 1, not district with database id of 1
davitykale-zz commented 7 years ago

@dbolson I don't think we have a list of the proposed endpoints yet. This issue is mostly about the routing structure of the client side app. We can have API endpoints that match that, but we certainly don't have to.

dbolson commented 7 years ago

https://docs.google.com/document/d/1Qc1vge6xc6UVq71JIQV_zU0HS8bZmhQWcTo3SkfQELc/edit