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

[Feature] Create API Endpoints for Admin Member Management Page #262

Open
12 tasks
dyzhuu opened this issue Aug 19, 2024 · 0 comments
Open
12 tasks

[Feature] Create API Endpoints for Admin Member Management Page #262

dyzhuu opened this issue Aug 19, 2024 · 0 comments

Comments

@dyzhuu
Copy link
Contributor

dyzhuu commented Aug 19, 2024

Description:

Create the relevant endpoints for the admin member page. Create APIs for:

  • Editing member prepaid sesions

Should be admin-level protected.

Acceptance Criteria:

  • Endpoint for changing prepaid sessions
    • Endpoint is at POST api/users/[userId]/prepaid-sessions
    • Is a admin-only endpoint (adminRouteWrapper)
    • Takes in the following payload:
      {
        prepaidSession: number,
        sendEmail: boolean
      }
      
    • Validates that the user exists
    • Validates that the user is a member
    • Sends an email notifying the member that their prepaid session count has been updated if sendEmail is true.

Definition of Done:

  • AC met
  • Applicable tests written
  • Applicable documentation is written in GH wiki
  • PR reviewed
  • Merged into main/feature branch

Notes / Links

@dyzhuu dyzhuu changed the title Create API Endpoints for Admin Member Management Page [Feature] Create API Endpoints for Admin Member Management Page Aug 19, 2024
@annabelleding annabelleding self-assigned this Oct 7, 2024
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

2 participants