Skip to content

Commit

Permalink
239 document capital project commitments endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
horatiorosa committed May 24, 2024
1 parent 9e1ce55 commit f198a5a
Showing 1 changed file with 38 additions and 10 deletions.
48 changes: 38 additions & 10 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,35 @@ paths:
'404':
$ref: "#/components/responses/NotFound"
'500':
$ref: "#/components/responses/InternalServerError"
$ref: "#/components/responses/InternalServerError"
/capital-projects/{managingCode}/{capitalProjectid}/capital-commitments:
get:
summary: Find capital commitments associated with a specific capital project
operationId: findCapitalCommitmentsByManagingCodeCapitalProjectId
tags: Capital Commitments
parameters:
- managingCode
- capitalProjectId
responses:
'200':
description: an object of capital commitments for the capital project
content:
application/json:
schema:
type: object
properties:
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 @@ -597,15 +625,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

0 comments on commit f198a5a

Please sign in to comment.