Question: a Controller MainController that - has a playerDB class injected into it - has a mapping for /players that returns a 'players' template and attaches

a Controller MainController that - has a playerDB class injected into it - has a mapping for "/players" that returns a 'players' template and attaches all players to the model

a Controller GameRestController that - has a playerDB class injected into it - has a mapping for "/mostdifficult" that returns the game with the highest difficulty

a unit test must validate the /players method that it attaches the correct objects to the model and returns the correct template)

----------------------------------------------------------------------------------------------------------------------------------------------------

[MainController] a path get "/creates" that returns a template with a form to create a player a template using thymeleaf that is an html5 form to create a player (and games they own) and submits a post to "/creates" - form should display validation errors if any [MainController] a path post "/creates" that saves a player (to playerdb) if it passes validation or returns back the original form if there are errors

Step by Step Solution

3.48 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

MainController Mapping for players Returns a template named players and attaches all players from th... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!