nerdexam
MuleSoft

MCD-LEVEL-1 · Question #149

What is the trait name you would use for specifying client credentials in RAML?

The correct answer is C. client-id-required. client-id-required enforces clients to add client_id and client_secret. Please refer to below steps. Add a section called traits: at the root level to define query parameters: - client-id-required: queryParameters: 2) Reference the trait in each of the methods to specify that…

API Design with RAML

Question

What is the trait name you would use for specifying client credentials in RAML?

Options

  • Aheaders
  • Bclient-id
  • Cclient-id-required
  • Dcannot be specified in RAML

How the community answered

(37 responses)
  • A
    5% (2)
  • B
    16% (6)
  • C
    76% (28)
  • D
    3% (1)

Explanation

client-id-required enforces clients to add client_id and client_secret. Please refer to below steps. Add a section called traits: at the root level to define query parameters: - client-id-required: queryParameters: 2) Reference the trait in each of the methods to specify that each of the methods require these query parameters. After each method in the RAML file, add is: [client-id-required]. For example: is: [client-id-required] description: Gets a list of JSONPlaceholder users.

Topics

#RAML#client-id-required#API security#traits

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice