Skip to content

Commit 3afc79f

Browse files
committed
feat(routes): add schemas
1 parent 1b16b59 commit 3afc79f

File tree

6 files changed

+105
-0
lines changed

6 files changed

+105
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$id": "/allowed_files",
3+
"route": "/allowed_files",
4+
"methods": [
5+
"POST"
6+
],
7+
"type": "object",
8+
"properties": {
9+
"key": {
10+
"type": [
11+
"string",
12+
"null"
13+
]
14+
}
15+
},
16+
"required": [
17+
"key"
18+
],
19+
"additionalProperties": false
20+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$id": "/tools/allowed_objects",
3+
"route": "/allowed_objects",
4+
"methods": ["POST"],
5+
"type": "object",
6+
"properties": {
7+
"filename": {
8+
"type": "string"
9+
},
10+
"key": {
11+
"type": ["string", "null"]
12+
}
13+
},
14+
"required": ["filename", "key"],
15+
"additionalProperties": false
16+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$id": "/tools/geode_objects_and_output_extensions",
3+
"route": "/geode_objects_and_output_extensions",
4+
"methods": [
5+
"POST"
6+
],
7+
"type": "object",
8+
"properties": {
9+
"input_geode_object": {
10+
"type": "string"
11+
},
12+
"filename": {
13+
"type": "string"
14+
}
15+
},
16+
"required": [
17+
"input_geode_object",
18+
"filename"
19+
],
20+
"additionalProperties": false
21+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$id": "/tools/geographic_coordinate_systems",
3+
"route": "/geographic_coordinate_systems",
4+
"methods": [
5+
"POST"
6+
],
7+
"type": "object",
8+
"properties": {
9+
"input_geode_object": {
10+
"type": "string"
11+
}
12+
},
13+
"required": [
14+
"input_geode_object"
15+
],
16+
"additionalProperties": false
17+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$id": "/tools/missing_files",
3+
"route": "/missing_files",
4+
"methods": ["POST"],
5+
"type": "object",
6+
"properties": {
7+
"input_geode_object": {
8+
"type": "string"
9+
},
10+
"filename": {
11+
"type": "string"
12+
}
13+
},
14+
"required": ["input_geode_object", "filename"],
15+
"additionalProperties": false
16+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$id": "/tools/upload_file",
3+
"route": "/upload_file",
4+
"methods": [
5+
"OPTIONS",
6+
"PUT"
7+
],
8+
"type": "object",
9+
"properties": {
10+
"filename": {
11+
"type": "string"
12+
}
13+
},
14+
"additionalProperties": false
15+
}

0 commit comments

Comments
 (0)