ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 224 - MCD - Level 1 discussion

Report
Export

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

A.
headers
Answers
A.
headers
B.
client-id
Answers
B.
client-id
C.
client-id-required
Answers
C.
client-id-required
D.
cannot be specified in RAML
Answers
D.
cannot be specified in RAML
Suggested answer: C

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:

traits:

- client-id-required:

queryParameters:

client_id:

type: string

client_secret:

type: string

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:

/users:

get:

is: [client-id-required]

description: Gets a list of JSONPlaceholder users.

asked 18/09/2024
Krzychu Kn
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first