nerdexam
MuleSoft

MCD-LEVEL-1 · Question #57

A RAML specification is defined to manage customers with a unique identifier for each customer record. What URI does MuleSoft recommend to uniquely access the customer identified with the unique ID…

The correct answer is B. /customers/1234. URI parameter (Path Param) is basically used to identify a specific resource or resources . For eg : the URL to get employee details on the basis of employeeID will be GET /employees/{employeeID} where employees is resource and {employeeID} is URI parameter. Hence option 1is…

API Design

Question

A RAML specification is defined to manage customers with a unique identifier for each customer record. What URI does MuleSoft recommend to uniquely access the customer identified with the unique ID 1234?

Options

  • A/customers?custid=true&custid=1234
  • B/customers/1234
  • C/customers/custid=1234
  • D/customers?operation=get&custid=1234

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    92% (22)
  • D
    4% (1)

Explanation

URI parameter (Path Param) is basically used to identify a specific resource or resources . For eg : the URL to get employee details on the basis of employeeID will be GET /employees/{employeeID} where employees is resource and {employeeID} is URI parameter. Hence option 1is the correct

Topics

#REST#URI design#resource identifier#RAML best practices

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice