Parameter | Type | Description | Example |
---|---|---|---|
object | The operation in the HTTP API definition. | ||
method | string | The method. Valid values:
| GET |
name | string | The operation name. | GetUserInfo |
path | string | The operation path. | /user |
description | string | The operation description. | This is a operation description. |
response | HttpApiResponseContract | The response parameters of the operation. | |
request | HttpApiRequestContract | The request parameters of the operation. | |
mock | HttpApiMockContract | The mocking configuration of the operation. This field takes effect only when the API publishing scenario is Mock. | |
enableAuth | boolean | Specifies whether to enable authentication. | |
authConfig | AuthConfig | The authentication configurations. |