Skip to content
This repository has been archived by the owner on Jul 11, 2021. It is now read-only.

[FEAT] Add /assignment endpoints in course-management #18

Open
benjaminkostiuk opened this issue Dec 23, 2020 · 0 comments
Open

[FEAT] Add /assignment endpoints in course-management #18

benjaminkostiuk opened this issue Dec 23, 2020 · 0 comments
Projects

Comments

@benjaminkostiuk
Copy link
Owner

benjaminkostiuk commented Dec 23, 2020

Overview

Implement the /assignment endpoints defined in the API planning document https://github.com/benjaminkostiuk/puff/blob/master/docs/API_ARCHITECTURE.md.

Breakdown

  1. Create an Assignment entity based on the ASSIGNMENT table.
  • Should have a many to one mapping to courses.
  • Can maybe include both the Course object and id as separate fields if that makes things easier.
  1. Create an AssignmnentAttribute entity based on the ASSIGNMENT_ATTR table.
  • Should be similar to the CourseAttribute entity.

2.5. Create a AssignmentPage and AssignmentAttributePage model.

  • You can do this by extending BasePage
  1. Create a Assignment & AssignmentAttribute JPA repository interfaces.
  • Similar to the Course repositories already created.
  1. Create an Assignment service interface and class
  • Should be similar to the CourseService already implemented
  • Don't forget to throw ElementNotFound exceptions if the associated Course can't be found for an assignment.
  1. Create an REST interface for Assignment endpoints
  • Similar to the Course REST interface already created.
  1. Implement the REST interface with a RestController for Assignment endpoints
  • Similar to the Course Controller.
  • Don't forget the security and access control on endpoints
  1. Write tests for your endpoints (You should also test manually)
  • Unit tests for your Assignment service class
  • Api component tests for your new apis
  • There are already some tests written for Courses that you can go off of.
@benjaminkostiuk benjaminkostiuk created this issue from a note in Unity Test (Ready to start) Dec 23, 2020
@benjaminkostiuk benjaminkostiuk moved this from Ready to start to In Progress in Unity Test Dec 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Unity Test
In Progress
Development

No branches or pull requests

2 participants