x-operation
enables you to specify a URL and HTTP method for an operation that is not described in the Arazzo sourceDescriptions
section. The primary application of the x-operation
extension is to facilitate calls to third-party APIs or other endpoints that are needed in a sequence of API calls.
Use x-operation
as part of a Step object.
Make an HTTP request not described in an OpenAPI description as part of a workflow.
steps:
- stepId: get-first-post
x-operation:
url: https://jsonplaceholder.typicode.com/posts/1
method: GET
successCriteria:
- condition: $statusCode == 200
The successCriteria
fields work in the same way as other operation types.
- x-security extension lets you apply OpenAPI security schemes to a step request.
- Respect commands list.
- Learn about Arazzo.