You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PUT request for movies currently returns an error which describes the title field when the description is invalid.
Also, much of the seed data in the DB has descriptions which exceed the PUT endpoint's description length limits.
Sample Payload
{
"id":1,
"title":"The Shawshank Redemption",
"description":"Lorem ipsum dolor sit amet, ut consul soluta persius quo, et eam mundi scribentur, eros invidunt dissentias no eum.",
"releaseDate":"2019-01-14"
}
Sample response:
{
"data": {
"id": 1,
"movie": {
"id": 1,
"title": "The Shawshank Redemption",
"description": "Lorem ipsum dolor sit amet, ut consul soluta persius quo, et eam mundi scribentur, eros invidunt dissentias no eum.",
"releaseDate": "2019-01-14T00:00:00"
}
},
"errors": [{
"code": 40005,
"message": "Movie Title should be between 2 and 50 characters"
}]
}
The text was updated successfully, but these errors were encountered:
The
PUT
request for movies currently returns an error which describes the title field when the description is invalid.Also, much of the seed data in the DB has descriptions which exceed the
PUT
endpoint's description length limits.Sample Payload
Sample response:
The text was updated successfully, but these errors were encountered: