A Enable autodiscovery in API Manager
B Deploy the API to a Maven repository
C Publish the API from inside Flow Designer
D Publish the API to Anypoint Exchange
答案:D,Anypoint Exchange相当于一个资料库,在Anypoint studio里面可以搜索并import
A http://dev.acme.com/patiets
B http://dev.acme.com/api/patients?year=2016
C http://dev.acme.com/api/patients
D http://dev.acme.com/patients?year=2016
答案:B,注意它的baseUri带了/api的
What is the correct syntax to reference the fragment?
A examples:#import BankAccountsExample.raml
B examples:!include BankAccountsExample.raml
C examples:#import examples/BankAccountsExample.raml
D examples:!include examples/BankAccountsExample.raml
答案:D,注意 in the examples folder,导入都是使用!include,规范
A Enclose flight_id in parentheses() instead of curly braces{}
B Indent the get method under the {flight_id} resource
C Remove blank line on row 9
D Outdent the {flight_id} resource
E Remove the curly braces{} around flight_id
答案:B,第10行的get:
是需要缩进的,缩进后端效果如下
/flights:get:/{flight_id}:get:
Using the Records type,how can this XML example be represented in RAML?
A
B
C
D
答案:B,重点在example里面,根据最上面xml里面的格式,artists里面不应该是数组,数组的话,里面的两个标签应该是一样的才对,但这里是artists1和artists2两个标签,应该就是artists的两个子属性。
上一篇:重学c/c++之数据存储