0
我正在嘗試構建一個RAML文檔(v 1.0),並在第一階段將它卡住。我有供應商資源,我定義如下:raml 1.0響應類型
types:
Vendor:
type: object
properties:
name: string
url: string
service_email: string
service_phone: string
image: string
/vendors:
description: foo bar
displayName: Vendor
get:
description: retrieve a list of vendors
responses:
200:
body:
application/json:
type: ???
uniqueItems: true
/{ident}:
get:
description: retrieve a single vendor item identified by ident
responses:
200:
body:
application/json:
type: Vendor
我無法弄清楚如何對GET請求類型編寫(現在在哪裏???是)的API和類型的對象數組進行響應供應商,但我如何將其傳達給RAML?