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

Build API #385

Open
ssempervirens opened this issue Feb 17, 2018 · 1 comment
Open

Build API #385

ssempervirens opened this issue Feb 17, 2018 · 1 comment

Comments

@ssempervirens
Copy link
Member

Several groups and individuals have already asked me for our data, we should have an API so this is easy!

@abandoned-prototype
Copy link
Collaborator

To make this a little more concrete, we should implement GET endpoints for the following:

  • list departments (/api/v1/departments)
  • list officers of department + filter (/api/v1/officers or /api/v1/departments/<department_id>/officers not sure which is better)
  • officer details (/api/v1/officers/<id> or /api/v1/departments/<department_id>/officers/<officer_id>)
  • incident detail view (/api/v1/incidents/<id>) (maybe also list for department)

Not exactly sure which fields we should return, it probably makes sense to start with whatever we offer in the UI.
Ideally we document the API with something like swagger.

@michplunkett michplunkett self-assigned this Dec 14, 2024
@michplunkett michplunkett linked a pull request Dec 18, 2024 that will close this issue
3 tasks
michplunkett added a commit that referenced this issue Jan 6, 2025
## Fixes issue
Sets the groundwork for this issue:
#385

## Description of Changes
Simplifying the import logic for the `auth` and `main` routes of the
application. This also sets up the work for this PR:
#1138

## Tests and Linting
- [x] This branch is up-to-date with the `develop` branch.
- [x] `pytest` passes on my local development environment.
- [x] `pre-commit` passes on my local development environment.
@michplunkett michplunkett removed a link to a pull request Jan 17, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants