Valid MCD-Level-1 Dumps shared by ExamDiscuss.com for Helping Passing MCD-Level-1 Exam! ExamDiscuss.com now offer the newest MCD-Level-1 exam dumps, the ExamDiscuss.com MCD-Level-1 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com MCD-Level-1 dumps with Test Engine here:
A shopping API contains a method to look up store details by department. To get the information for a particular store, web clients will submit requests with a query parameter named department and uri parameter named storeId What is valid RAML snippet that supports requests from a web client to get a data for a specific storeId and department name?
Correct Answer: D
Lets revise few concepts RAML which can help us to find the answer of this question. URI Parameters Lets have a look at below example. * /foos: * /{id}: * /name/{name}: Here, the braces { } around property names define URI parameters. They represent placeholders in each URI and do not reference root-level RAML file properties as we saw above in the baseUri declaration. The added lines represent the resources /foos/{id} and /foos/name/{name}. Query Parameters Now we'll define a way to query the foos collection using query parameters. Note that query parameters are defined using the same syntax that we used above for data types: * /foos: * get: * description: List all Foos matching query criteria, if provided; * otherwise list all Foos * queryParameters: * name?: string * ownerName?: string Based on the above information , below is the only option which defines storeid as uri parameter and department as query parameter. * /{storeId}: * get: * queryParameter: * department: