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…
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)- A5% (2)
- B16% (6)
- C76% (28)
- D3% (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
Community Discussion
No community discussion yet for this question.