Skip to content

Update Community District Filter and Add borough filter query parameter to findCommunityBoardBudgetRequests endpoint #550

@TylerMatteo

Description

@TylerMatteo

Context

See this section in #549 for context on the scope of this ticket. The rationale laid out there applies to this budget requests endpoint as well.

Acceptance Criteria

  • Update the existing community district filtering functionality on the findCommunityBoardBudgetRequests endpoint to use two separate query parameters: boroughId and communityDistrictId. communityDistrictId should only represent the Id of a CD.
  • Add new boroughId query parameter to findCommunityBoardBudgetRequests endpoint OpenAPI documentation
  • Update OpenAPI documentation for communityDistrictId to reflect changes
  • When a valid boroughId is passed, but no communityDistrictId is passed, only projects that intersect with the given borough are returned.
  • When a valid boroughId and communityDistrictId are passed, only projects that intersect with the given community district are returned
  • When communityDistrictId is passed with no boroughId, throw an error and return a 400 Invalid client request error.

Dependent on completion of issues under ae-data-flow #117

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions