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

Public REST API for accessing siteAlerts for a site #171

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

dhakalaashish
Copy link
Contributor

This Pull Request introduces a new public REST API endpoint that allows external clients to access site alerts associated with a specific site. The endpoint provides a method for querying site alerts based on a remoteId (which is the id for a Plant-for-the-Planet Webapp site) and an optional durationInDays parameter, which defaults to the last 30 days if not specified. The data returned is formatted as a GeoJSON object, making it suitable for integration with mapping and geographic information systems.

Copy link

vercel bot commented Apr 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
fire-alert ❌ Failed (Inspect) Apr 26, 2024 0:11am

@dhakalaashish dhakalaashish merged commit 7ff903a into develop Apr 26, 2024
3 of 5 checks passed
@dhakalaashish dhakalaashish deleted the feature/public-sitealert-for-site-RESTapi branch April 26, 2024 12:17
@dhakalaashish dhakalaashish mentioned this pull request Apr 26, 2024
dhakalaashish added a commit that referenced this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants