All Products
Search
Document Center

API Gateway:HttpApiOperation

Last Updated:Mar 31, 2025
ParameterTypeDescriptionExample
object

The operation in the HTTP API definition.

methodstring

The method.

Valid values:

  • TRACE
  • HEAD
  • DELETE
  • POST
  • GET
  • CONNECT
  • OPTIONS
  • PUT
  • PATCH
GET
namestring

The operation name.

GetUserInfo
pathstring

The operation path.

/user
descriptionstring

The operation description.

This is a operation description.
responseHttpApiResponseContract

The response parameters of the operation.

requestHttpApiRequestContract

The request parameters of the operation.

mockHttpApiMockContract

The mocking configuration of the operation. This field takes effect only when the API publishing scenario is Mock.

enableAuthboolean

Specifies whether to enable authentication.

authConfigAuthConfig

The authentication configurations.