# HttpOperation

- [JSON representation](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/HttpOperation#SCHEMA_REPRESENTATION)
- [Path](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/HttpOperation#Path)
  - [JSON representation](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/HttpOperation#Path.SCHEMA_REPRESENTATION)
- [Method](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/HttpOperation#Method)

The HTTP Operation.

| JSON representation |
|---|
| ``` { "path": { object (`https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/HttpOperation#Path`) }, "method": enum (`https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/HttpOperation#Method`) } ``` |

| Fields ||
|---|---|
| `path` | ``object (`https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/HttpOperation#Path`)`` Optional. The path details for the Operation. Note: Even though this field is optional, it is required for `https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.operations/create#google.cloud.apihub.v1.ApiHub.CreateApiOperation` API and we will fail the request if not provided. |
| `method` | ``enum (`https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/HttpOperation#Method`)`` Optional. Operation method Note: Even though this field is optional, it is required for `https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.operations/create#google.cloud.apihub.v1.ApiHub.CreateApiOperation` API and we will fail the request if not provided. |

## Path

The path details derived from the spec.

| JSON representation |
|---|
| ``` { "path": string, "description": string } ``` |

| Fields ||
|---|---|
| `path` | `string` Optional. Complete path relative to server endpoint. Note: Even though this field is optional, it is required for `https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.operations/create#google.cloud.apihub.v1.ApiHub.CreateApiOperation` API and we will fail the request if not provided. |
| `description` | `string` Optional. A short description for the path applicable to all operations. |

## Method

Enumeration of Method types.

| Enums ||
|---|---|
| `METHOD_UNSPECIFIED` | Method unspecified. |
| `GET` | Get Operation type. |
| `PUT` | Put Operation type. |
| `POST` | Post Operation type. |
| `DELETE` | Delete Operation type. |
| `OPTIONS` | Options Operation type. |
| `HEAD` | Head Operation type. |
| `PATCH` | Patch Operation type. |
| `TRACE` | Trace Operation type. |