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

Implement API endpoint for deleting a location #16

Open
specious opened this issue Jun 11, 2022 · 0 comments
Open

Implement API endpoint for deleting a location #16

specious opened this issue Jun 11, 2022 · 0 comments

Comments

@specious
Copy link
Member

Implement API endpoint for deleting a location:

DELETE /id/{id}

The lambda function should check that the caller has sufficient permission to delete the location based on the current session.

A signed in user should be able to delete their own location and so should an admin with sufficient permissions.

The location shouldn't be removed from the database, but rather simply be marked as deleted, so that it will then be easy to make it possible to view deleted locations and to undelete them. In accordance with this advancement, the logic for retrieving locations within a geographic area should be adjusted to return by default only locations that have not been deleted.

Since the location will remain in the database, so should all the media files associated with that location remain in the media store.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant