HTTP Operation Binding v0.2.0
The HTTP operation binding v0.2.0 is used to define the details of an HTTP request, specifically its method and query parameters.
Operation Properties
Section titled “Operation Properties”| Property | Type | Required | Description |
|---|---|---|---|
bindingVersion |
string | No | Binding version (defaults to 0.2.0). |
method |
string | Yes | The HTTP request method (e.g., GET, POST). |
query |
Schema Object | No | A schema defining the URL query parameters. |
Example
Section titled “Example”This operation describes an API call to fetch a list of users with a GET method and a query schema for filtering.
operations: listUsers: action: receive channel: $ref: '#/channels/users' bindings: http: bindingVersion: '0.2.0' method: 'GET' query: type: object properties: companyId: type: stringChangelog
Section titled “Changelog”Version 0.2.0
Section titled “Version 0.2.0”- Renamed the original
typeproperty tomethodfor better clarity compared tov0.1.0.