Skip to content

Conversation

@jason4193
Copy link
Contributor

Description 🧾

  • Added Route for courses:
  1. add course
  2. remove course
  3. set course colour
  • Still working on routes:
  1. select classes

Testing

By now, we testing our code by reading. Run them later for actual test.

Checklist

  • 📍 You have assigned yourself to this pull request.
  • 🔗 You have linked an issue to which this pull request closes.
  • 💭 Leave any relevant specific directions to reviewers.
  • 👀 No secrets in clear text in the pull request.
  • 🎟️ To categorise release notes, the pull request should be labelled with at least one of these labels:
    • feature: for application feature improvement or new features
    • bug: fixing something that previously wasn't working
    • dev: development-side related changes
    • docker: updates to the Docker code
    • setup: changes to the setup/infrastructure of the codebase
    • test: updates to internal testing

@jason4193 jason4193 self-assigned this Jun 19, 2025
@jason4193 jason4193 linked an issue Jun 19, 2025 that may be closed by this pull request
@jason4193 jason4193 force-pushed the 1000-update-backend-route-for-courses-and-classes branch from dd3fabc to 3348b07 Compare June 26, 2025 07:02
@lhvy lhvy changed the base branch from dev to server-rewrite June 26, 2025 07:28
@jason4193 jason4193 force-pushed the 1000-update-backend-route-for-courses-and-classes branch 2 times, most recently from a0febd1 to 2af047a Compare June 30, 2025 04:49
@jason4193 jason4193 marked this pull request as ready for review July 3, 2025 10:46
@jason4193 jason4193 requested a review from a team as a code owner July 3, 2025 10:46
Copy link
Contributor

@lhvy lhvy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good, minor feedback comments left. Would also suggest looking here and seeing if any of these status codes could be used for when your routes succeed: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status#successful_responses

@lhvy lhvy changed the title 1000 update backend route for courses and classes Add backend routes for courses and classes Jul 10, 2025
@lhvy lhvy added the 🍀 feature 🪴 New feature or request label Jul 10, 2025
@lhvy lhvy mentioned this pull request Jul 10, 2025
@jason4193 jason4193 requested a review from lhvy July 11, 2025 05:51
Copy link
Contributor

@lhvy lhvy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, really happy with the refactor. Just a few minor comments now.

@lhvy lhvy force-pushed the server-rewrite branch from 39e1bdd to 599672e Compare July 15, 2025 03:54
@jason4193 jason4193 force-pushed the 1000-update-backend-route-for-courses-and-classes branch from 7cbfdcc to 9674588 Compare July 15, 2025 05:32
@jason4193 jason4193 force-pushed the 1000-update-backend-route-for-courses-and-classes branch from a079698 to 9a98db7 Compare July 15, 2025 06:12
@lhvy lhvy merged commit 7fe1748 into server-rewrite Jul 17, 2025
3 checks passed
@lhvy lhvy deleted the 1000-update-backend-route-for-courses-and-classes branch July 17, 2025 16:54
lhvy pushed a commit that referenced this pull request Aug 7, 2025
* Add routes for adding and removing course

* Update routes by moving validation to controller

* Add route for update course colour

* add OpenAPI for api-docs for backend using swagger library

* Add ApiProperty for user's route

* Add get route for courses and classes with update of routing urls

* Update PUT request for setCourseColour to PATCH request

* Update user routes to using AuthenticatedRequest Type

* Add selectClass & removeClass route

* Remove OpenAPI and Swagger Library, switched to use Postman

* Update route for select and remove class

* Remove unwanted routes with forwarding functions

* Resolve usage of null and undefined

* Resolve PR review comments

* Slim down the Course and Class detail for graphql, and add validation function for update and remove class

* Update routes returning status code

* Refactor user.controller, move all business validation into service level

* Remove duplicate getCourse request in addSelectedClass

* Resolve issues on the PR code review

* Resolve minor issue on function call, optimise prisma call

* Resolve function name typo

* Update service level function name corresponds to control level
lhvy pushed a commit that referenced this pull request Aug 31, 2025
* Add routes for adding and removing course

* Update routes by moving validation to controller

* Add route for update course colour

* add OpenAPI for api-docs for backend using swagger library

* Add ApiProperty for user's route

* Add get route for courses and classes with update of routing urls

* Update PUT request for setCourseColour to PATCH request

* Update user routes to using AuthenticatedRequest Type

* Add selectClass & removeClass route

* Remove OpenAPI and Swagger Library, switched to use Postman

* Update route for select and remove class

* Remove unwanted routes with forwarding functions

* Resolve usage of null and undefined

* Resolve PR review comments

* Slim down the Course and Class detail for graphql, and add validation function for update and remove class

* Update routes returning status code

* Refactor user.controller, move all business validation into service level

* Remove duplicate getCourse request in addSelectedClass

* Resolve issues on the PR code review

* Resolve minor issue on function call, optimise prisma call

* Resolve function name typo

* Update service level function name corresponds to control level
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍀 feature 🪴 New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Backend Route for Courses and Classes

3 participants