-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' into fix/TM-848-Admin-UI-Upload-polygons
- Loading branch information
Showing
11 changed files
with
405 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
type: object | ||
properties: | ||
uuid: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
type: object | ||
properties: | ||
type: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
summary: Get collection Feature as GeoJSON for a site | ||
parameters: | ||
- in: query | ||
name: uuid | ||
type: string | ||
required: true | ||
description: UUID of the aite. | ||
responses: | ||
'200': | ||
description: Successful response | ||
schema: | ||
$ref: '../../definitions/_index.yml#/FeatureCollection' | ||
'400': | ||
description: Bad request | ||
'500': | ||
description: Internal server error |
17 changes: 17 additions & 0 deletions
17
openapi-src/V2/paths/Terrafund/post-v2-terrafund-polygon.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
summary: Create a new polygon | ||
operationId: post-v2-polygon | ||
tags: | ||
- V2 Terrafund | ||
consumes: | ||
- application/json | ||
parameters: | ||
- in: body | ||
name: body | ||
description: Polygon to create | ||
schema: | ||
$ref: '../../definitions/_index.yml#/GeometryString' | ||
responses: | ||
'200': | ||
description: Created | ||
schema: | ||
$ref: '../../definitions/_index.yml#/DashboardPolygonResponse' |
29 changes: 29 additions & 0 deletions
29
openapi-src/V2/paths/Terrafund/post-v2-terrafund-upload-geojson.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
summary: Upload GeoJSON File | ||
description: Uploads a GeoJSON file, converts it to GeoJSON, and inserts it into the database. | ||
consumes: | ||
- multipart/form-data | ||
parameters: | ||
- name: file | ||
in: formData | ||
description: The GeoJSON file to upload | ||
required: true | ||
type: file | ||
- name: uuid | ||
in: formData | ||
description: The UUID of the site associated with the GeoJSON file | ||
required: true | ||
type: string | ||
responses: | ||
'200': | ||
description: GeoJSON file processed and inserted successfully | ||
schema: | ||
type: object | ||
properties: | ||
message: | ||
type: string | ||
uuid: | ||
type: string | ||
'400': | ||
description: Bad request | ||
'500': | ||
description: Internal server error |
29 changes: 29 additions & 0 deletions
29
openapi-src/V2/paths/Terrafund/post-v2-terrafund-upload-kml.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
summary: Upload KML File | ||
description: Uploads a KML file, converts it to GeoJSON, and inserts it into the database. | ||
consumes: | ||
- multipart/form-data | ||
parameters: | ||
- name: file | ||
in: formData | ||
description: The KML file to upload | ||
required: true | ||
type: file | ||
- name: uuid | ||
in: formData | ||
description: The UUID of the site associated with the KML file | ||
required: true | ||
type: string | ||
responses: | ||
'200': | ||
description: KML file processed and inserted successfully | ||
schema: | ||
type: object | ||
properties: | ||
message: | ||
type: string | ||
uuid: | ||
type: string | ||
'400': | ||
description: Bad request | ||
'500': | ||
description: Internal server error |
29 changes: 29 additions & 0 deletions
29
openapi-src/V2/paths/Terrafund/post-v2-terrafund-upload-shapefile.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
summary: Upload Shapefile | ||
description: Uploads a shapefile, converts it to GeoJSON, and inserts it into the database. | ||
consumes: | ||
- multipart/form-data | ||
parameters: | ||
- name: file | ||
in: formData | ||
description: The shapefile to upload | ||
required: true | ||
type: file | ||
- name: uuid | ||
in: formData | ||
description: The UUID of the site associated with the shapefile | ||
required: true | ||
type: string | ||
responses: | ||
'200': | ||
description: Shapefile processed and inserted successfully | ||
schema: | ||
type: object | ||
properties: | ||
message: | ||
type: string | ||
uuid: | ||
type: string | ||
'400': | ||
description: Bad request | ||
'500': | ||
description: Internal server error |
21 changes: 21 additions & 0 deletions
21
openapi-src/V2/paths/Terrafund/put-v2-terrafund-site-polygon-uuid.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
summary: Update site polygon | ||
parameters: | ||
- in: path | ||
name: uuid | ||
required: true | ||
type: string | ||
description: The UUID of the site polygon | ||
- in: body | ||
name: body | ||
required: true | ||
schema: | ||
$ref: '../../definitions/_index.yml#/SitePolygonResponse' | ||
responses: | ||
'200': | ||
description: Successful response | ||
schema: | ||
$ref: '../../definitions/_index.yml#/SitePolygonResponse' | ||
'400': | ||
description: Bad request | ||
'500': | ||
description: Internal server error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.