Watchlist-project / movie-watchlist-backend

Backend API for movie watchlist website
1 stars 0 forks source link

Design Watchlist Endpoints #3

Closed LinusWillmont closed 3 months ago

LinusWillmont commented 3 months ago

Closing criteria Agree on the required endpoints

LinusWillmont commented 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[] }
LinusWillmont commented 3 months ago

Implemented here