What is a valid RAML specification that reuses the Plan data type?

Refer to the exhibit.

The API needs to be updated using the company-wide standard for the Plan data type. The Object data type has already been published in Anypoint Exchange with the global reference. ACME/DataTypes/PlanDataType.raml.

What is a valid RAML specification that reuses the Plan data type?

A)

B)

C)

D)

A . Option A
B . Option B
C . Option C
D . Option D

Answer: D

Explanation:

As can be seen in RAML, POST expects input in application/json format which eliminates two of the options as two options are in xml format.

Now out of the two remaining options, one has id field in request which is only mentioned for get response and not for POST request. Hence id field is not expected in POST request.

Hence correct answer is

{

"name": "GoerdiLa Forge",

"address": "1 Westland CA",

"customer_since": "2014-01-04",

"balance": "4829.29",

"bank_agend_id": "12556"

}

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments