How is a path parameter denoted in RAML paths?

Study for the MuleSoft Associate / Development Fundamental Test. Master key concepts with flashcards and multiple choice questions, complete with hints and explanations. Prepare thoroughly for your exam!

Multiple Choice

How is a path parameter denoted in RAML paths?

Explanation:
In RAML, dynamic parts of a path are defined using curly braces to mark a path parameter. Wrapping the parameter name in braces, as in /{flight_id}, signals that this segment will be supplied by the client at runtime. This parameter can then be described in the URI Parameters section with its type, description, and whether it is required. The braces are the RAML convention for path parameters, so alternatives like /[flight_id], /<flight_id>, or /(flight_id) do not denote a variable path segment.

In RAML, dynamic parts of a path are defined using curly braces to mark a path parameter. Wrapping the parameter name in braces, as in /{flight_id}, signals that this segment will be supplied by the client at runtime. This parameter can then be described in the URI Parameters section with its type, description, and whether it is required. The braces are the RAML convention for path parameters, so alternatives like /[flight_id], /, or /(flight_id) do not denote a variable path segment.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy