ucsb-cs156-f24 / proj-happycows-f24-11

1 stars 0 forks source link

Create StudentsController.java, add GetById Endpoint for single record in students table #30

Open smmzhu opened 3 days ago

smmzhu commented 3 days ago

Overview

(Merge #28 before this one) Second ticket in a series tackling issue #26 — created StudentsController.java API endpoint controller, add GetById Endpoint for single record in students table + tests.

Testing Link: https://sampr2.dokku-11.cs.ucsb.edu/

Screenshots (Optional)

image

Validation (Optional)

  1. Go into Swagger. Use the students Post request to create a student object in the table.
  2. Validate this endpoint by using the GetById endpoint to get the student object back.
  3. (for extra confirmation that admin perms are required) Try making a request on an account that does not have admin privileges. Make sure the request returns a 403.

Tests

Linked Issues

Closes #33

Division7 commented 2 days ago

Heads up, if you're not ready to merge, you can mark the PR as a draft

smmzhu commented 7 hours ago

*force-pushing at the end for cleaner viewing of files changed

(also i messed up resolving the merge conflicts on github.com directly so i just took my changes, rebased against updated main, and force pushed)

no code should be any different