全部產品
Search
文件中心

API Gateway:HttpApiResponseContract

更新時間:Mar 30, 2026

名稱

類型

描述

樣本值

object

HTTP API 定義的響應格式

contentType

string

內應內容類型。

application/json

items

array

響應定義。

object

響應體

code

integer

響應碼。

200

example

string

樣本值。

{"result": "ok"}

description

string

描述。

正常介面響應

jsonSchema

string

響應體 JSON 定義描述。

{ "type": "object", "required": [ "result" ], "properties": { "result": { "type": "string", "description": "操作結果,'ok' 表示成功" } } }