stump icon indicating copy to clipboard operation
stump copied to clipboard

Basic reading list support

Open aaronleopold opened this issue 2 years ago • 1 comments

A user should be able to add media to a reading list, like a playlist but for books. Reading lists may be either for a user or for a set of users

Core tasks:

  • [x] Add ReadingList model to prisma schema
  • [ ] API routes to manage reading lists (minimal for now)
    • [ ] Create reading list
      • [ ] #74
        • [ ] ImportCblJob should be created
        • [ ] .cbl parsing functions need to be created
    • [x] Edit reading list (NOTE: this will likely be much more nuanced than what I am writing)
      • [x] Provided a list of media ids, add them to reading list.
      • [x] Provided a list of media ids, remove them from reading list
    • [x] Delete reading list
  • [ ] server config to store imported .cbl files

Basic REST endpoints:

# get all reading lists *created* by session user
GET /api/reading-list -> ReadingList[]
# get reading list by id IF *created* by session user
GET /api/reading-list/:id -> ReadingList

# create reading list, take in something like: { media_ids: string[]; }
POST /api/reading-list -> ReadingList
# update reading list, take in something like: { media_ids: string[]; }. replace with input
PUT /api/reading-list -> ReadingList

# delete reading list by id IF *created* by session user
DELETE /api/reading-list/:id -> ReadingList

Interface tasks:

  • [ ] TBD

aaronleopold avatar Sep 16 '22 02:09 aaronleopold

I can take it

berkingurcan avatar Oct 15 '22 18:10 berkingurcan