|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The operation in the HTTP API definition. |
||
| method |
string |
The HTTP method. Valid values:
|
GET |
| name |
string |
The operation name. |
GetUserInfo |
| path |
string |
The operation path. |
/user |
| description |
string |
The operation description. |
获取用户信息 |
| response | HttpApiResponseContract |
The response parameters. |
|
| request | HttpApiRequestContract |
The request parameters. |
|
| mock | HttpApiMockContract |
The mock configuration. Takes effect only when the publishing scenario is set to Mock. |
|
| enableAuth |
boolean |
Whether to enable authentication. |
true |
| authConfig | AuthConfig |
The authentication configuration. |
|
| deployConfigs |
array |
The deployment configurations. |
|
| HttpApiDeployConfig |
object |