MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 37


What is the correct syntax to reference a fragment in RAML?

Show Answer
Correct Answer: D

To reference a fragment in RAML, the correct syntax is to use '!include'. This syntax instructs the RAML parser to include an external file, such as examples, resource types, traits, etc., into the RAML document. The correct usage is 'examples: !include examples/BankAccountsExample.raml'.

Discussion

1 comment
Sign in to comment
AquawormOption: D
Feb 21, 2022

#%RAML 1.0 title: Products API types: paging: properties: start?: number page-size?: number /products: description: All products get: queryString: type: paging examples: !include examples/paging-examples.raml https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md#typed-fragments