Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

MainController Mapping for players Returns a template named players and attaches all players from th... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Principles of Economics

Authors: Tyler Cowen, Alex Tabarrok

3rd edition

1429278390, 978-1429278416, 1429278412, 978-1429278393

More Books

Students also viewed these Programming questions