Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 239: Document an endpoint to return commitments associated with a capital project #289

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 38 additions & 15 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,17 @@ paths:
$ref: "#/components/responses/NotFound"
'500':
$ref: "#/components/responses/InternalServerError"
/city-council-districts:
/capital-projects/{managingCode}/{capitalProjectid}/capital-commitments:
get:
summary: 🚧 Find city council districts
operationId: findCityCouncilDistricts
tags:
- City Council Districts
summary: 🚧 Find capital commitments associated with a specific capital project
operationId: findCapitalCommitmentsByManagingCodeCapitalProjectId
tags: Capital Commitments
parameters:
- managingCode
- capitalProjectId
responses:
'200':
description: an object of city council districts
description: an object of capital commitments for the capital project
content:
application/json:
schema:
Expand All @@ -135,6 +137,15 @@ paths:
$ref: '#/components/responses/BadRequest'
'500':
$ref: '#/components/responses/InternalServerError'
/city-council-districts:
pratishta marked this conversation as resolved.
Show resolved Hide resolved
get:
summary: 🚧 Find city council districts
operationId: findCityCouncilDistricts
tags:
- City Council Districts
responses:
'200':
description: an object of city council districts
/city-council-districts/{cityCouncilDistrictId}/capital-projects:
get:
summary: 🚧 Find paginated capital projects within a specific city council district.
Expand All @@ -156,6 +167,18 @@ paths:
$ref: "#/components/responses/NotFound"
'500':
$ref: "#/components/responses/InternalServerError"
capitalCommitments:
type: object
items:
$ref: '#/components/schemas/CapitalCommitment'
required:
- capitalCommitments
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
/land-uses:
get:
summary: List land uses
Expand Down Expand Up @@ -664,15 +687,15 @@ components:
type: number
description: A numeric string used to refer to the amount of total planned commitments.
example: 1600000
required:
- id
- type
- plannedDate
- budgetLineCode
- budgetLineId
- sponsoringAgencyInitials
- budgetType
- totalValue
required:
- id
- type
- plannedDate
- budgetLineCode
- budgetLineId
- sponsoringAgencyInitials
- budgetType
- totalValue
CapitalProjectCategory:
type: string
enum:
Expand Down