Description of PR that completes issue here...
this issue was that the movies weren't able to be updated and saved correctly. i have updated the keys that are being updated in the update and in the movie Serializer.
the client would also like to see pictures uploaded to show what movie they are viewing in the movieViews.
Changes
Item 1 added an image key and needed to updated the field set in src/components/movie/MovieForm.js to allow to add pictures
Item 2 added and image key to src/components/movie/MovieList.js to allow to add pictures and removed some unused code.
Item 3 added updates to src/components/movie/EditMovieForm.js to rename keys correctely to allow for information from the back end to generate correctly on the front end to allow for updateing of movies. chenged the attributes to reflect correctly
item 4 in src/components/movie/MovieList.js moved button to the top of the page
item 5 added light css in src/components/auth/Profile.css
Requests / Responses
Request
POST /movie Creates a new movie
{
"name": "Murder on the Orient Express",
"year": "2017",
"description": "When a murder occurs on the train on which he's travelling, celebrated detective Hercule Poirot is recruited to solve the case.",
"genre": 6,
"player": 1,
"number_of_players": 2,
"director": "Kenneth Branagh",
"rating": "PG-13",
"suspect": 9,
"movie_image_url": "https://s3.amazonaws.com/saportakinsta/wp-content/uploads/2017/11/3.jpg"
}
Response
HTTP/1.1 201 OK
{
"name": "Murder on the Orient Express",
"year": "2017",
"description": "When a murder occurs on the train on which he's travelling, celebrated detective Hercule Poirot is recruited to solve the case.",
"genre": 6,
"player": 1,
"number_of_players": 2,
"director": "Kenneth Branagh",
"rating": "PG-13",
"suspect": 9,
"movie_image_url": "https://s3.amazonaws.com/saportakinsta/wp-content/uploads/2017/11/3.jpg"
}
Testing
Description of how to test code...
[ ] Run migrations to add tables
[ ] Seed database to add new keys to the tables that weren't there previously and update all movie tables.
Description of PR that completes issue here... this issue was that the movies weren't able to be updated and saved correctly. i have updated the keys that are being updated in the update and in the movie Serializer. the client would also like to see pictures uploaded to show what movie they are viewing in the movieViews.
Changes
Item 1 added an image key and needed to updated the field set in src/components/movie/MovieForm.js to allow to add pictures
Item 2 added and image key to src/components/movie/MovieList.js to allow to add pictures and removed some unused code.
Item 3 added updates to src/components/movie/EditMovieForm.js to rename keys correctely to allow for information from the back end to generate correctly on the front end to allow for updateing of movies. chenged the attributes to reflect correctly
item 4 in src/components/movie/MovieList.js moved button to the top of the page
item 5 added light css in src/components/auth/Profile.css
Requests / Responses
Request
POST
/movie
Creates a new movieResponse
HTTP/1.1 201 OK
Testing
Description of how to test code...