Skip to content

Export tool integration: Creating a new endpoint to generate a list of active projects #6144

Closed
@ramyaragupathy

Description

@ramyaragupathy

Related to Export Tool integration:
image

image

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:

  1. interval: for now this should default to 24 hours, later we can have specific values
  2. 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"
      }
    }
]
}

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions