The following messages and data are exchanged between the frontends and the backend.
Note
The UUIDs used are of UUID Version 4.
Opens a new Collection with the given Information.
🔵Request-Body
- name:
String
- clientId:
UUID
: required - area:
GeoJSON MultiPolygon
: required
Recieve Collection Information.
🟢Request-Parameter
- userId == clientId:
UUID
🟠Path-Variables
- CollectionId:
UUID
Set and Change the division of the Collection-Area. This Areas has a assigned User and a Name.
🟠Path-Variables
- collectionId:
UUID
🔵Request-Body
- collectionDivision[] (contains area:
GeoJSON Polygon
, name:String
and id:UUID
)
Request Access for a Collection.
🟠Path-Variables
- clientId:
UUID
🔵Request-Body
- username:
String
- clientId:
UUID
- collectionId:
UUID
- not described -
🟢Request-Parameter
- userId == clientId:
UUID
🟠Path-Variables
- CollectionId:
UUID
🔵Request-Body
- username:
String
Boss affirms the Access-Request of a User with either True or False.
🟠Path-Variables
- clientId:
UUID
🔵Request-Body
- accepted:
boolean
Deletes a Collection. This can only be performed by an Owner of a Collection
🟠Path-Variables
- collectionId:
UUID
Request-Body
- areaId:
UUID
- clientId:
UUID
Request-Body
- collectionId:
UUID
- accepted:
boolean
Request-Body
- progress:
GeoJSON LineString
- If connection has been interrupted, resend unsent data
- Start/stop GPS track
Request-Body
- progress:
GeoJSON LineString
- In the form of a list of GPS tracks