MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 144


A shopping API contains a method to look up store details by department.

To get information for a particular store, web clients will submit requests with a query parameter named department and a URI parameter named storeId.

What is a valid RAML snippet that supports requests from web clients to get data for a specific storeId and department name?

Show Answer
Correct Answer: C

For a valid RAML snippet to support requests from web clients to get data for a specific storeId and department name, it should define the URI parameter {storeId} and the query parameter department. Option C presents the structure correctly by having /{storeId} as a URI parameter and department as a query parameter under a GET method.

Discussion

1 comment
Sign in to comment
ExamDevOption: C
Jan 24, 2024

C. /{storedId}: get: queryParameters: department: