Skip to content

Commit

Permalink
[TM-846] fix issues with definitions in openapi src folder
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarLima1 committed Jun 6, 2024
1 parent d01369f commit b365352
Show file tree
Hide file tree
Showing 11 changed files with 213 additions and 259 deletions.
4 changes: 3 additions & 1 deletion openapi-src/V2/definitions/SitePolygonsBboxResponse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ title: SitePolygonsBboxResponse
type: object
properties:
bbox:
type: array
type: array
items:
type: number
6 changes: 2 additions & 4 deletions openapi-src/V2/paths/Sites/get-v2-sites-polygon-bbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ parameters:
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '../../definitions/_index.yml#/SitePolygonsBboxResponse'
schema:
$ref: '../../definitions/_index.yml#/SitePolygonsBboxResponse'
'400':
description: Bad request
'500':
Expand Down
6 changes: 2 additions & 4 deletions openapi-src/V2/paths/Sites/get-v2-sites-polygons-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ parameters:
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '../../definitions/_index.yml#/SitePolygonsDataResponse'
schema:
$ref: '../../definitions/_index.yml#/SitePolygonsDataResponse'
'400':
description: Bad request
'500':
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
summary: Get Polygon as GeoJSON
description: |
Retrieve polygon geometry and properties as GeoJSON.
description: Retrieve polygon geometry and properties as GeoJSON.
parameters:
- in: query
name: uuid
Expand All @@ -10,10 +9,8 @@ parameters:
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '../../definitions/_index.yml#/GeoJSONResponse'
schema:
$ref: '../../definitions/_index.yml#/GeoJSONResponse'
'400':
description: Bad request
'500':
Expand Down
6 changes: 2 additions & 4 deletions openapi-src/V2/paths/Terrafund/get-v2-polygon-bbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ parameters:
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '../../definitions/_index.yml#/SitePolygonsBboxResponse'
schema:
$ref: '../../definitions/_index.yml#/SitePolygonsBboxResponse'
'400':
description: Bad request
'500':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@ parameters:
required: true
description: The UUID of the polygon
type: string
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '../../definitions/_index.yml#/V2TerrafundCriteriaData'
schema:
$ref: '../../definitions/_index.yml#/V2TerrafundCriteriaData'
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@ parameters:
required: true
description: The UUID of the polygon
type: string
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '../../definitions/_index.yml#/V2TerrafundCriteriaSite'
schema:
$ref: '../../definitions/_index.yml#/V2TerrafundCriteriaSite'
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@ parameters:
required: true
description: The UUID of the polygon
type: string
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '../../definitions/_index.yml#/V2TerrafundCriteriaData'
schema:
$ref: '../../definitions/_index.yml#/V2TerrafundCriteriaData'
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@ parameters:
required: true
description: The UUID of the polygon
type: string
schema:
type: string
responses:
"200":
description: Successful response
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: A message indicating the completion of validation for all site polygons.
schema:
type: object
properties:
message:
type: string
description: A message indicating the completion of validation for all site polygons.
6 changes: 2 additions & 4 deletions openapi-src/V2/paths/Terrafund/post-v2-site-polygon-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ parameters:
responses:
'201':
description: Successful response
content:
application/json:
schema:
$ref: '../../definitions/_index.yml#/SitePolygonCreateResponse'
schema:
$ref: '../../definitions/_index.yml#/SitePolygonCreateResponse'
'400':
description: Bad request
'500':
Expand Down
Loading

0 comments on commit b365352

Please sign in to comment.