Skip to content

Commit

Permalink
Merge pull request #4 from cornellh4i/cluster-query-func
Browse files Browse the repository at this point in the history
Cluster query func
  • Loading branch information
jfeuerstein authored Oct 16, 2023
2 parents ebab860 + fc7b43c commit 965697a
Show file tree
Hide file tree
Showing 7 changed files with 402 additions and 136 deletions.
203 changes: 168 additions & 35 deletions backend/api-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title": "My API",
"description": "Documentation automatically generated by the <b>swagger-autogen</b> module."
},
"host": "localhost:3000",
"host": "localhost:8000",
"basePath": "/",
"tags": [
{
Expand Down Expand Up @@ -52,7 +52,7 @@
}
}
},
"/users/": {
"/clusters/": {
"get": {
"description": "",
"parameters": [],
Expand All @@ -64,19 +64,47 @@
},
"post": {
"description": "",
"parameters": [],
"parameters": [
{
"name": "body",
"in": "body",
"schema": {
"type": "object",
"properties": {
"location": {
"example": "any"
}
}
}
}
],
"responses": {
"200": {
"description": "OK"
"201": {
"description": "Created"
}
}
}
},
"/customers/": {
"get": {
"tags": [
"Customers"
"/clusters/delete/{id}": {
"delete": {
"description": "",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"201": {
"description": "Created"
}
}
}
},
"/clusters/nets/": {
"get": {
"description": "",
"parameters": [],
"responses": {
Expand All @@ -86,9 +114,6 @@
}
},
"post": {
"tags": [
"Customers"
],
"description": "",
"parameters": [
{
Expand All @@ -97,16 +122,10 @@
"schema": {
"type": "object",
"properties": {
"name": {
"example": "any"
},
"age": {
"example": "any"
},
"title": {
"clusterID": {
"example": "any"
},
"company": {
"type": {
"example": "any"
}
}
Expand All @@ -120,11 +139,8 @@
}
}
},
"/customers/{id}": {
"/clusters/nets/{id}": {
"get": {
"tags": [
"Customers"
],
"description": "",
"parameters": [
{
Expand All @@ -141,44 +157,161 @@
}
}
},
"/customers/updateName/{id}": {
"put": {
"tags": [
"Customers"
],
"/clusters/net/delete/{id}": {
"delete": {
"description": "",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
},
}
],
"responses": {
"201": {
"description": "Created"
}
}
}
},
"/clusters/data/": {
"get": {
"description": "",
"parameters": [],
"responses": {
"200": {
"description": "OK"
}
}
},
"post": {
"description": "",
"parameters": [
{
"name": "body",
"in": "body",
"schema": {
"type": "object",
"properties": {
"name": {
"netID": {
"example": "any"
},
"date": {
"example": "any"
},
"water_collected": {
"example": "any"
}
}
}
}
],
"responses": {
"201": {
"description": "Created"
}
}
}
},
"/clusters/data/{id}": {
"get": {
"description": "",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/customers/resetAges": {
"post": {
"tags": [
"Customers"
"/clusters/data/delete/{id}": {
"delete": {
"description": "",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"201": {
"description": "Created"
}
}
}
},
"/clusters/clusterData/dates/{minDate}/{maxDate}/": {
"get": {
"description": "",
"parameters": [
{
"name": "minDate",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "maxDate",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/clusters/clusterData/min/{minDate}": {
"get": {
"description": "",
"parameters": [
{
"name": "minDate",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/clusters/clusterData/max/{maxDate}": {
"get": {
"description": "",
"parameters": [
{
"name": "maxDate",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/clusters/clusterData/": {
"get": {
"description": "",
"parameters": [],
"responses": {
Expand Down
Loading

0 comments on commit 965697a

Please sign in to comment.