Question
@Controller public class UKHSAController{ @Autowired UKHSAService hsaService; /* * * GET /UKHSA/covid19/api/Omicron/7 * See Appendix C (b) for the response in JSON * * Return
@Controller public class UKHSAController{
@Autowired UKHSAService hsaService;
/* * * GET /UKHSA/covid19/api/Omicron/7 * See Appendix C (b) for the response in JSON * * Return confirmed COVID19 cases with a specific variant X in the past Y days in JSON * format. For example, the request below returns a list of anonymised confirmed cases * infected with the latest "Omicron" variant over the past 7 days. */
[...] public [...] getCovidCasesJSON([...]) { [...]
//Question 2 f(i)
: complete the code here }
/* * GET /UKHSA/covid19/Omicron/report?variant=Omicron * */
@RequestMapping(value = /UKHSA/covid19/report/)
public ModelAndView viewCovidReport() { List
return new ModelAndView("report","data",cases); } }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started