Closed
Description
Related to Export Tool integration:
We will generate exports for Tasking Manager published projects that have been active in the last 24 hours. Active = published projects that had an entry in Task history table in the last 24 hours. In order to track this a new endpoint should be available witht he follwoing query parameters:
endpoint: /projects/queries/active/
query parameter:
- interval: for now this should default to 24 hours, later we can have specific values
- authorization: takes in API token
Thsi sends out a JSOn object and in retrun receives a GeoJSON output in the following format:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"project_id": 1234,
"mapping_type": "[buildings, highways]"
},
"geometry": {
"coordinates": [
],
"type": "Polygon"
}
}
]
}