From 97c0645ad60b263b876228e9faaafd8364c050c4 Mon Sep 17 00:00:00 2001 From: Bryan Marchena Date: Tue, 28 May 2024 09:12:02 -0400 Subject: [PATCH] Add capital projects in community district endpoint --- openapi/openapi.yaml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 9fd257b8..f610d093 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -88,7 +88,36 @@ paths: '404': $ref: "#/components/responses/NotFound" '500': - $ref: "#/components/responses/InternalServerError" + $ref: "#/components/responses/InternalServerError" + /boroughs/{boroughId}/community-districts/{communityDistrictId}/capital-projects: + get: + summary: Find paginated capital projects within a specified community district + operationId: findCapitalProjectsByBoroughIdCommunityDistrictId + tags: + - Capital Projects + parameters: + - $ref: "#/components/parameters/boroughIdParam" + - $ref: "#/components/parameters/communityDistrictIdParam" + responses: + '200': + description: An array of capital projects for the community district + content: + application/json: + schema: + type: object + properties: + capitalProjectPage: + type: array + items: + $ref: "#/components/schemas/CapitalProjectPage" + required: + - capitalProjectPage + '400': + $ref: "#/components/responses/BadRequest" + '404': + $ref: "#/components/responses/NotFound" + '500': + $ref: "#/components/responses/InternalServerError" /land-uses: get: summary: List land uses