Skip to content

Commit 96a26a4

Browse files
authored
Merge pull request #201 from Geode-solutions/feat/create_voi
Feat/create voi
2 parents 2d1bd79 + 81f203f commit 96a26a4

File tree

10 files changed

+195
-433
lines changed

10 files changed

+195
-433
lines changed

opengeodeweb_back_schemas.json

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,43 @@
11
{
22
"opengeodeweb_back": {
33
"create": {
4+
"create_voi": {
5+
"$id": "opengeodeweb_back/create/create_voi",
6+
"route": "/create_voi",
7+
"methods": [
8+
"POST"
9+
],
10+
"type": "object",
11+
"properties": {
12+
"name": {
13+
"type": "string",
14+
"description": "Name of the VOI"
15+
},
16+
"aoi_id": {
17+
"type": "string",
18+
"description": "ID of the corresponding AOI"
19+
},
20+
"z_min": {
21+
"type": "number",
22+
"description": "Minimum Z coordinate"
23+
},
24+
"z_max": {
25+
"type": "number",
26+
"description": "Maximum Z coordinate"
27+
},
28+
"id": {
29+
"type": "string",
30+
"description": "Optional ID for updating existing VOI"
31+
}
32+
},
33+
"required": [
34+
"name",
35+
"aoi_id",
36+
"z_min",
37+
"z_max"
38+
],
39+
"additionalProperties": false
40+
},
441
"create_point": {
542
"$id": "opengeodeweb_back/create/create_point",
643
"route": "/create_point",
@@ -61,8 +98,7 @@
6198
],
6299
"additionalProperties": false
63100
},
64-
"minItems": 4,
65-
"maxItems": 4
101+
"minItems": 3
66102
},
67103
"z": {
68104
"type": "number"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ where = ["src"]
3333
"opengeodeweb_back.routes.schemas" = ["*.json"]
3434
"opengeodeweb_back.routes.models.schemas" = ["*.json"]
3535
"opengeodeweb_back.routes.create.schemas" = ["*.json"]
36-
opengeodeweb_microservice = ["py.typed"]
36+
"opengeodeweb_back" = ["py.typed"]

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,3 @@ werkzeug==3.1.2
6060
# flask
6161
# flask-cors
6262

63-
opengeodeweb-microservice==1.*,>=1.0.7rc1

0 commit comments

Comments
 (0)