Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ramyaragupathy opened this issue Nov 30, 2023 · 0 comments · Fixed by #6153
Closed
Assignees
Labels
hot tools integration Track tickets related to integrating HOT tools with TM scope: backend scope: documentation Any issue that relates to documentation edits, updates, improvements status: in progress type: feature request Adding functionality that currently does not exist

Comments

@ramyaragupathy
Copy link
Member

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"
      }
    }
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hot tools integration Track tickets related to integrating HOT tools with TM scope: backend scope: documentation Any issue that relates to documentation edits, updates, improvements status: in progress type: feature request Adding functionality that currently does not exist
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants