OpenSourceFellows / amplify

Open Source Fellow Sandbox
https://amplify-app-production.herokuapp.com/
MIT License
88 stars 63 forks source link

Create Admin Rest endpoints #603

Open DietBepis1 opened 1 year ago

DietBepis1 commented 1 year ago

Description

For our new control panel feature, we will need to create some rest endpoints that will handle our new admin model. These will need to be under the v1 endpoint schema, which may or may not be made by the time this is worked on 😉 . Endpoints should consume JSON.

Dependencies

Spec

We need to create:

Each of these endpoints should also have appropriate testing!

Copilot Prompts

Help me write a(n) <insert http verb> endpoint using ExpressJS.

Explain how Express routes requests.

How can I group express endpoints with a version?

Target Date: 11/15/23 📆

XicaFelix commented 1 year ago

Hi @DietBepis1, I'd like to take this on if that's ok!

DietBepis1 commented 1 year ago

@xica, pick one endpoint to focus on and you're good! This relies on the admin table which is also under development, but you can look at that issue for the schema and create a temporary db migration to test locally.

XicaFelix commented 1 year ago

@DietBepis1 Sounds good, I'll take the Get Admins endpoint

Justin-Quinn51 commented 1 year ago

Hi @DietBepis1, I'd like to give the PUT admins endpoint a try please.

jayaruhbee commented 1 year ago

Hi @DietBepis1 I'll work on the POST endpoints!

Figaro0414 commented 1 year ago

Hi, @DietBepis1 I'll work on the DELETE endpoint.