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

243 Document Endpoints to get MVTs for Capital Data #284

Merged
merged 1 commit into from
Jun 4, 2024
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
103 changes: 85 additions & 18 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,15 @@ paths:
$ref: "#/components/responses/NotFound"
'500':
$ref: "#/components/responses/InternalServerError"
/capital-projects/{managingCode}/{capitalProjectid}/capital-commitments:
/capital-projects/{managingCode}/{capitalProjectId}/capital-commitments:
get:
summary: 🚧 Find capital commitments associated with a specific capital project
operationId: findCapitalCommitmentsByManagingCodeCapitalProjectId
tags: Capital Commitments
tags:
- Capital Commitments
parameters:
- managingCode
- capitalProjectId
- $ref: '#/components/parameters/managingCodeParam'
- $ref: '#/components/parameters/capitalProjectIdParam'
responses:
'200':
description: an object of capital commitments for the capital project
Expand All @@ -127,12 +128,32 @@ paths:
schema:
type: object
properties:
cityCouncilDistricts:
capitalCommitments:
type: array
items:
$ref: '#/components/schemas/CityCouncilDistrict'
$ref: '#/components/schemas/CapitalCommitment'
required:
- cityCouncilDistricts
- capitalCommitments
'400':
$ref: "#/components/responses/BadRequest"
'404':
$ref: "#/components/responses/NotFound"
'500':
$ref: "#/components/responses/InternalServerError"
/capital-projects/{z}/{x}/{y}.pbf:
get:
summary: 🚧 Mapbox Vector Tiles for capital projects
operationId: findCapitalProjectTiles
tags:
- MVT
- Capital Projects
parameters:
- $ref: '#/components/parameters/viewportZoomParam'
- $ref: '#/components/parameters/viewportXParam'
- $ref: '#/components/parameters/viewportYParam'
responses:
'200':
$ref: '#/components/responses/MVT'
'400':
$ref: '#/components/responses/BadRequest'
'500':
Expand All @@ -146,6 +167,21 @@ paths:
responses:
'200':
description: an object of city council districts
content:
application/json:
schema:
type: object
properties:
cityCouncilDistricts:
type: array
items:
$ref: '#/components/schemas/CityCouncilDistrict'
required:
- cityCouncilDistricts
'400':
$ref: '#/components/responses/BadRequest'
'500':
$ref: '#/components/responses/InternalServerError'
/city-council-districts/{cityCouncilDistrictId}/capital-projects:
get:
summary: 🚧 Find paginated capital projects within a specific city council district.
Expand All @@ -167,16 +203,40 @@ paths:
$ref: "#/components/responses/NotFound"
'500':
$ref: "#/components/responses/InternalServerError"
capitalCommitments:
type: object
items:
$ref: '#/components/schemas/CapitalCommitment'
required:
- capitalCommitments
/city-council-districts/{z}/{x}/{y}.pbf:
get:
summary: 🚧 Mapbox Vector Tiles for city council districts
operationId: findCityCouncilDistrictTiles
tags:
- MVT
- City Council Districts
parameters:
- $ref: '#/components/parameters/viewportZoomParam'
- $ref: '#/components/parameters/viewportXParam'
- $ref: '#/components/parameters/viewportYParam'
responses:
'200':
$ref: '#/components/responses/MVT'
'400':
$ref: '#/components/responses/BadRequest'
'500':
$ref: '#/components/responses/InternalServerError'
/community-districts/{z}/{x}/{y}.pbf:
get:
summary: 🚧 Mapbox Vector Tiles for community districts
operationId: findCommunityDistrictTiles
tags:
- MVT
- Community Districts
parameters:
- $ref: '#/components/parameters/viewportZoomParam'
- $ref: '#/components/parameters/viewportXParam'
- $ref: '#/components/parameters/viewportYParam'
responses:
'200':
$ref: '#/components/responses/MVT'
'400':
$ref: '#/components/responses/BadRequest'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
/land-uses:
Expand Down Expand Up @@ -802,9 +862,9 @@ components:
description: A single character numeric string containing the common number used to refer to the borough. Possible values are 1-5.
pattern: \b[1-9]\b
example: 1
required:
- id
- boroughId
required:
- id
- boroughId
LandUse:
type: object
properties:
Expand Down Expand Up @@ -1068,6 +1128,13 @@ components:
required:
- taxLots
responses:
MVT:
description: A protobuf file formatted as Mapbox Vector Tile
content:
application/x-protobuf:
schema:
type: string
format: binary
BadRequest:
description: Invalid client request
content:
Expand Down