2016-08-21 86 views

回答

2

无论你想要使用定义,通常在请求或响应中,你都会像这样引用它。

JSON

{ 
    halitem: { $ref: '#/defintions/HalItemResponse' } 
} 

YAML

halitem: 
    $ref: '#/definitions/HalItemResponse' 

非常相似,设置类型,而是指向定义架构。