QuestionQ50

VerifiedDesign and implement API-led integrations

Northern Trail Outfitters (NTO) has an API for managing departments, and each department is identified by a unique deptId. The API was built using RAML in accordance with MuleSoft best practices.

What is a valid RAML definition for a method that updates the details of one specific department?

Explanation

A RAML endpoint for updating one identified department uses a URI-template child resource, /departments/{deptId}, with the patch method nested beneath it. MuleSoft’s RAML examples use the same resource hierarchy and method placement for a resource identified by an ID.

Learn more

Community Discussion

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