MVP Endpoints #21
Closed
TylerMatteo
started this conversation in
Ideas
Replies: 2 comments 9 replies
-
General rules
Breaking the general rules
Summary of endpoints
|
Beta Was this translation helpful? Give feedback.
6 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's sketch out which endpoints we need in addition to the
/boroughs
one already speced out in #9 !/tax-lots/<bbl>
or something more verbose that conveys the hierarchy of borough-block-lot, such as/boroughs/<borough_id>/blocks/<block>/lots/<lot>
. @TangoYankee I think we settled on the simpler BBL approach last time we discussed this but open to discussion. We know that the frontend end will need to pan the map the a tax lot when the user looks up a borough, block, and lot. Depending on exactly how that interaction with Deck works, this endpoint will probably need to return geojson. In that case, we could append/geojson
on the end, implying that an endpoint without it would include only the properties about the lot and not its geometry./tax-lots/<bbl>/zoning-district/zoning-district-classes
/zoning-district-classes
. We probably want this to return all of them in one go so that we can use that data to do things like render out the toggles for hiding/showing districts on the map. My initial thought was that this would be an object "indexed" by the class ideas but on second thought I think it probably makes more sense to just return an array of zoning district class objects and convert it to the nested object structure on the front end if needed./land-uses
- Same deal as zoning district classes, but for land uses/zoning-district-classes/<id>
This endpoint supports the functionality of what happens when a user clicks on an individual zoning district on the map. We'll have the zoning district's class id via Deck when the user clicks on a polygon but stuff like the description is associated with that class. If we decide to just get a reference to the class from the list of classes on the front end, we may not need thisVector tile endpoints
/tax-lots/<z>/<x>/<y>.pbf
/zoning-districts/<z>/<x>/<y>.pbf
These endpoints will redirect traffic to S3 storage but I'm thinking maybe we don't include them in the
openapi.yaml
for now? There are ways to represent protocol buffer-encoded responses in OAS but it might something we should punt on for now.Beta Was this translation helpful? Give feedback.
All reactions