ucsb-cs156-s24 / proj-courses-s24-4pm-2

https://ucsb-cs156-s24.github.io/proj-courses-s24-4pm-2/
0 stars 0 forks source link

Kelly swagger delete with psid and enroll code #38

Closed kmflippo closed 1 month ago

kmflippo commented 1 month ago

Added swagger delete endpoint for PSCourses to use enroll code and psId to delete a course from a personal schedule instead of id.

When run on local host you can see a new swagger endpoint:

image

This swagger endpoint adds another way to delete a course from a personal schedule using psId and enroll Code

image

Added endpoint to PSCoursesController.java, added tests to test new endpoint in PSCoursesControllerTests.java, and added new EntityNotFoundException in EntityNotFoundException.java in order to throw an exception in a different format than just using id.

dokku deployment: https://proj-courses-kmflippo-dev.dokku-02.cs.ucsb.edu/ Note: the dokku deployed, but Swagger is not accessible from dokku because we use the mongodb for that.

Closes #36