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

A company has an API to manage departments, with each department identified by a unique deptld. 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)

A . Option A
B . Option B
C . Option C
D . Option D

Answer: D

Explanation:

URI parameter is basically used to identify a specific resource or resources

* Here we want to update details about specific department, so question is asking ‘How to use URI parameter’ in RAML

* Correct answer is

/departments:

/{deptId}:

patch:

Reference: https://docs.mulesoft.com/design-center/design-common-problems-raml-10

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments