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

Create patch route for Group Missions #113

Open
Trobbi opened this issue Jan 19, 2025 · 0 comments
Open

Create patch route for Group Missions #113

Trobbi opened this issue Jan 19, 2025 · 0 comments
Labels
good first issue Good for newcomers

Comments

@Trobbi
Copy link
Contributor

Trobbi commented Jan 19, 2025

We need a PATCH route to be able to edit the GroupMission_DB objects in the database.

What needs to be done?

  1. Create a route called edit_group_mission
  2. Create/find an appropriate schema for the output (This might be found in api_schemas/group_mission_schema.py)
  3. Do a query to see if there exists a group mission with a given nollning_group_id and adventure_mission_id since this is a many-many table. If not, raise an exception (404 Not found).
  4. Edit the object and update the database.
  5. Add appropriate Permissions.
@Trobbi Trobbi added the good first issue Good for newcomers label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant