mosh-hamedani / vidly-api-node

309 stars 285 forks source link

September 2020: Unable to add new movies #37

Closed yitbareck closed 3 years ago

yitbareck commented 3 years ago

Hello there, Whenever I try to add new movies via Postman I get a 404 error: "title" is required. Here is my request body(row->JSON): { "title":"The Lord of The Rings", "numberInStock":2, "dailyRentalRate":5, "genreId":"5f607904cdb2ec2d701930a7" }

souravkumardubey commented 1 year ago

Hey could you please tell me how you resolved this issue. This is what I'm getting, ValidationError: Movies validation failed: name: Path name is required.

My JSON input in postman: { "title": "Interstellar", "genreId": "6438333ac7beaa87d38b1616", "numberInStock": 3, "dailyRentalRate": 3 }