NYCPlanning / deprecated-labs-zap-api

Deprecated version of the ZAP API, see https://github.com/NYCPlanning/labs-zap-api
Other
5 stars 3 forks source link

Refactor #147

Closed ghost closed 5 years ago

ghost commented 5 years ago

A few loose ends still to be tied up:

Overall tho, this is the new ZAP API which almost works as a drop in with the existing ZAP frontend. Required changes:

allthesignals commented 5 years ago

Change download call -- use the saved projectIds from the original search query to quickly get all data, instead of having to do the query logic again. This means download route now takes a filterId, not a big project query

@julialucyhogan

Hi! Just want to make sure I understand: a call to /projects returns a filterId which should be used for subsequent pagination OR downloads.

ghost commented 5 years ago

Change download call -- use the saved projectIds from the original search query to quickly get all data, instead of having to do the query logic again. This means download route now takes a filterId, not a big project query

@julialucyhogan

Hi! Just want to make sure I understand: a call to /projects returns a filterId which should be used for subsequent pagination OR downloads.

yes! it is returned in the meta property of the response, as queryId and should be passes as a query param to either a pagination request (optimization, not required) ((also, this used to be a header, but that was random and bad implementation)) or download (required)

ghost commented 5 years ago

Closing this pull request in favor of https://github.com/NYCPlanning/labs-zap-api/pull/150 which has clean squashed commits.