Closed skau811 closed 1 year ago
Would you be able to provide some screenshots or documentation for the testing please?
The testing of the endpoints was done using POSTMAN. Below are the requested screenshots which show the relvant requests and the state of the user document as a result of those interactions:
Background : The screenshots below are the result of the interactions with the user document with lightYG as the username, all the requests to the endpoints include the authorization token in the header (generated during login/signup), and take place using this token.
For further context:
Testing the get all favorite movies endpoint From mongoDB database:
Testing the add to favorites endpoint
From mongoDB (889 is now present in the list):
Testing the remove from favorites endpoint From mongoDB (1235 is not present there):
Testing if a particular movie is present in favorites list endpoint Since 1235 was removed in the previous remove request, we get this message.
thankyou for adding the documentation
This Pull Request introduces few additions to the backend to support the functionality of adding, viewing, and editing favorite movies for users:
Server-Side Endpoints
User Schema Updates
Instance Methods in userModel
With these additions, the backend now has the relevant functions to incorporate the favorite movies list feature, thereby progressing towards the closure of #53 .