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

feat: endpoint for adding alerts #32

Merged
merged 1 commit into from
Nov 4, 2024
Merged

feat: endpoint for adding alerts #32

merged 1 commit into from
Nov 4, 2024

Conversation

EvanHahn
Copy link
Contributor

@EvanHahn EvanHahn commented Nov 4, 2024

This adds a new endpoint,
POST /projects/:projectId/remoteDetectionAlerts, which adds remote detection alerts.

It takes a payload like this:

{
  "detectionDateStart": "2024-11-03T04:20:69Z",
  "detectionDateEnd": "2024-11-04T04:20:69Z",
  "sourceId": "abc123",
  "metadata": { "foo": "bar" },
  "geometry": {
    "type": "Point",
    "coordinates": [12, 34]
  }
}

And, if successful, responds with HTTP status 201 and an empty body.

Closes #28.

@EvanHahn EvanHahn self-assigned this Nov 4, 2024
This adds a new endpoint,
`POST /projects/:projectId/remoteDetectionAlerts`, which adds remote
detection alerts.

It takes a payload like this:

```json
{
  "detectionDateStart": "2024-11-03T04:20:69Z",
  "detectionDateEnd": "2024-11-04T04:20:69Z",
  "sourceId": "abc123",
  "metadata": { "foo": "bar" },
  "geometry": {
    "type": "Point",
    "coordinates": [12, 34]
  }
}
```

And, if successful, responds with HTTP status 201 and an empty body.
@EvanHahn EvanHahn merged commit e907f82 into main Nov 4, 2024
2 checks passed
@EvanHahn EvanHahn deleted the alerts-endpoint branch November 4, 2024 21:04
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.

Add API endpoint to create alerts
1 participant