RepresentationContract interface
作業要求/回應表示詳細數據。
屬性
content |
指定這個表示法的已註冊或自定義內容類型,例如 application/xml。 |
examples | 針對表示法定義的範例。 |
form |
表單參數的集合。 如果 'contentType' 值為 'application/x-www-form-urlencoded' 或 'multipart/form-data',則為必要專案。 |
schema |
架構標識碼。 只有在 'contentType' 值不是 'application/x-www-form-urlencoded' 或 'multipart/form-data' 時才適用。 |
type |
架構所定義的類型名稱。 只有在 'contentType' 值不是 'application/x-www-form-urlencoded' 或 'multipart/form-data' 時才適用。 |
屬性詳細資料
contentType
指定這個表示法的已註冊或自定義內容類型,例如 application/xml。
contentType: string
屬性值
string
examples
針對表示法定義的範例。
examples?: {[propertyName: string]: ParameterExampleContract}
屬性值
{[propertyName: string]: ParameterExampleContract}
formParameters
表單參數的集合。 如果 'contentType' 值為 'application/x-www-form-urlencoded' 或 'multipart/form-data',則為必要專案。
formParameters?: ParameterContract[]
屬性值
schemaId
架構標識碼。 只有在 'contentType' 值不是 'application/x-www-form-urlencoded' 或 'multipart/form-data' 時才適用。
schemaId?: string
屬性值
string
typeName
架構所定義的類型名稱。 只有在 'contentType' 值不是 'application/x-www-form-urlencoded' 或 'multipart/form-data' 時才適用。
typeName?: string
屬性值
string