Closed LinusWillmont closed 3 months ago
Endpoints | Path | Method | Payload | Returns |
---|---|---|---|---|
getAllWatchlists | /watchlists |
GET | { id: name: description: movies: [ movieId1, movieId2, ] },[] |
|
getWatchlistById | /watchlist/:watchlistId{int} |
GET | { id: name: description: movies: [ movieId1, movieId2, ] } |
|
getWatchlistsByUser | /user/:userId/watchlists/ |
GET | { id: name: description: movies: [ movieId1, movieId2, ] },[] |
|
createWatchlist | /watchlist |
POST | name: description: |
{ id: name: description: movies: [ movieId1, movieId2, ] } |
addMovieToWatchlist | /watchlist/:watchlistid{int}/movies |
PUT | :movieId |
|
changeWatchlistInfo | /watchlist/:watchlistid{int}/ |
PATCH | { name: description: } |
|
removeMovieFromWatchlist | /watchlist/:watchlistid{int}/movies |
DELETE | :movieId |
{ id: name: description: movieId: } |
deleteWatchlist | /watchlist/:watchlistid{int} |
DELETE | { id: name: description: List of movieIDs int[] } |
Closing criteria Agree on the required endpoints