2016-08-21 29 views

回答

2

無論你想要使用定義,通常在請求或響應中,你都會像這樣引用它。

JSON

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

YAML

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

非常相似,設置類型,而是指向定義架構。

相關問題