Skip to content

Commit ff05710

Browse files
committed
blueprint model extract_uuids_endpoint
removed unnecessary attr to mesh_component schema pull from latest next
1 parent b8d54fd commit ff05710

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

src/opengeodeweb_back/routes/models/blueprint_models.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ def extract_model_uuids(model):
5050
def extract_uuids_endpoint():
5151
utils_functions.validate_request(flask.request, mesh_components_json)
5252

53-
model = geode_functions.load_data(
54-
flask.request.json["geode_object"],
55-
flask.request.json["id"],
56-
flask.request.json["filename"],
57-
)
53+
model = geode_functions.load_data_by_id(flask.request.json["id"])
5854

5955
uuid_dict = extract_model_uuids(model)
6056
return flask.make_response({"uuid_dict": uuid_dict}, 200)

src/opengeodeweb_back/routes/models/schemas/mesh_components.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,10 @@
88
"id": {
99
"type": "string",
1010
"minLength": 1
11-
},
12-
"filename": {
13-
"type": "string",
14-
"minLength": 1
15-
},
16-
"geode_object": {
17-
"type": "string",
18-
"minLength": 1
1911
}
2012
},
2113
"required": [
22-
"id",
23-
"filename",
24-
"geode_object"
14+
"id"
2515
],
2616
"additionalProperties": false
2717
}

0 commit comments

Comments
 (0)