Exam MCD - Level 1 All QuestionsBrowse all questions from this exam
Question 118

A company has an API to manage departments, with each department identified by a unique deptId. The API was built with RAML according to MuleSoft best practices.

What is valid RAML to specify a method to update the details for a specific department?

A.

B.

C.

D.

    Correct Answer:

    To specify a method to update the details for a specific department in RAML, the correct approach is to define the department's identifier as a URI parameter. Using the URI parameter in curly braces allows the deptId to be explicitly stated in the path. This approach follows RESTful principles by making the resource identifier (in this case, deptId) part of the URI. Consequently, the valid RAML to specify a method to update departmental details is: /departments/{deptId}: patch: This signifies that the department identified by {deptId} is updated using the PATCH method.

Discussion
Alandt

D is indeed correct

ExamDev

D is correct.