> For the complete documentation index, see [llms.txt](https://docs.rierino.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rierino.com/devops/api-gateway-and-security/apis/openapi-specification.md).

# OpenAPI Specification

Rierino automatically produces OpenAPI specification from runner & saga configurations.

Devops application includes a link to auto generated API "Documentation", which can be viewed through an interactive UI or downloaded as OpenAPI specification for external tools.

<figure><img src="https://1659095931-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcnDk3J1AzTgg2NFrGPlh%2Fuploads%2F3yUDqS8cmRlrJs4WKSk1%2Fimage.png?alt=media&amp;token=f0163e91-7ba0-4634-a46e-f4e3420a971a" alt=""><figcaption><p>OpenAPI Documentation</p></figcaption></figure>

This specification is automatically generated using the following configurations:

* **Gateway Channels:** Mapping runners to individual gateways to list only relevant APIs for a selected gateway
* **Gateway Tokens:** Mapping authentication tokens to API endpoints
* **Runners:** Mapping state managers to standard list of CRUD endpoints
* **Schemas:** Mapping JSON schemas to CRUD endpoints and Saga references
* **Sagas:** Mapping custom API endpoints, using "allowed on" stream information

{% hint style="info" %}
If JSON schema for a state is not configured, it is not displayed for the mapping CRUD runner.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.rierino.com/devops/api-gateway-and-security/apis/openapi-specification.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
