What is the correct URI to get all retail finance accounts?

Refer to the exhibit.

This RAML specification includes a resource and method to retrieve accounts by account_type and industry.

What is the correct URI to get all retail finance accounts?
A . /accounts/retail/finance
B . /accounts?account_type=retail&industry=finance
C . /accounts/account_type=retail/industry=finance
D . /accounts?account_type:retail&industry:finance

Answer: B

Explanation:

Correct answer is /accounts?account_type=retail&industry=finance

Query parameters are a defined set of parameters attached to the end of a url. They are extensions of the URL that are used to help define specific content or actions based on the data being passed. To append query params to the end of a URL, a ‘?’ Is added followed immediately by a query parameter. To add multiple parameters, an ‘&’ is added in between each.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments