Skip to content

Jugendhackt/pcae

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pcae

Backend

Endpoints

POST: collect/new

body:

{
  "timestamp": "Timestamp",
  "co_value": "Int",
  "longitude": "Double",
  "latitude": "Double"
}

response:

String (success)

GET: retreive/all

no-args

response:

[
  {
    "id": "Long",
    "longitude": "Double",
    "latitude": "Double",
    "co_value": "Int",
    "timestamp": "Timestamp"
  }
]

POST: retreive/between

body:

{
  "minLat": "Double",
  "minLon": "Double",
  "maxLat": "Double",
  "maxLon": "Double"
}

response:

[
  {
    "id": "Long",
    "longitude": "Double",
    "latitude": "Double",
    "co_value": "Int",
    "timestamp": "Timestamp"
  }
]