vsite-hr / mentor

Online learning platform.
MIT License
3 stars 2 forks source link

Lecture units REST endpoint(s) #17

Closed gkresic closed 7 years ago

gkresic commented 7 years ago

Implement /units and /units/count services under LectureResource. First one should return list of units associated with this lecture (all of them, without paging and in proper order) and second one should return just number of them.

Lecture's units can be already fetched via /units/list and filtering by lecture, but these two endpoints should provide more "RESTful" experience.

gkresic commented 7 years ago

Db fetch method implemented as UnitManager.list(Lecture) and count method as UnitManager.count(Lecture)

Genato commented 7 years ago

Covered in commit Issue #17.