QuestionQ37

VerifiedDesigning APIs and Connectivity

A shopping API includes a method for retrieving store details by department.

To obtain information about a specific store, web clients will send requests with a query parameter named department and a URI parameter named storeId.

Which valid RAML snippet supports web-client requests to retrieve data for a particular storeId and department name?

Explanation

In RAML, a URI parameter is represented by a curly-braced variable in a resource path, such as /{storeId}, with its method nested under that resource. Query parameters belong under the method’s queryParameters section. Thus, /{storeId} with a nested get method that declares department as a query parameter supports the required request.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!