Operation

struct

Represents an API operation inside the designer editor and agent model.

Property Type Description
arguments

Ordered list of non-body input parameters (path, query, header) provided to this operation.

description String

Plain text summary explaining the purpose and behavior of this operation.

httpCode String

Default HTTP response status code for a successful request (e.g., '200', '201'). Defaults to '200' if omitted.

httpMethod String

The HTTP method for this endpoint. Must be an uppercase verb: 'GET', 'POST', 'PUT', 'DELETE', 'PATCH', or 'HEAD'.

httpPath String

The relative URL path of the endpoint. Path variables must be prefixed with a colon (e.g., '/product/:id').

name String

Unique identifier for the operation using dot-notation (e.g., 'product.getAll' or 'user.create').

payload String

The type name used as the request body payload. Defines the request body for POST/PUT/PATCH requests. Omit or leave empty for operations that do not require a request body (e.g., GET requests).

return String

The return type name or primitive type returned upon successful operation completion.

throws

List of non-success error responses that this operation can return.

part of the Apioo-Project