# Examples

Copy as Markdown[View as Markdown](/docs/plugins/openapi/examples.md)

***

You can find many examples of using the OpenAPI plugin in the [EventCatalog GitHub repository](https://github.com/event-catalog/generators).

## Examples[​](#examples "Direct link to Examples")

* [OpenAPI Example](https://github.com/event-catalog/generators/tree/main/examples/generator-openapi/basic)
  * A basic example of using the OpenAPI plugin to generate a catalog from an OpenAPI file.
* [Fetch OpenAPI files from remote URLs](https://github.com/event-catalog/generators/tree/main/examples/generator-openapi/fetch-from-remote-urls)
  * An example of using the OpenAPI plugin to fetch an OpenAPI file from a remote URL.
* [Version OpenAPI messages in EventCatalog](https://github.com/event-catalog/generators/tree/main/examples/generator-openapi/independent-message-versioning)
  * An example of using the OpenAPI plugin to version OpenAPI messages in EventCatalog.
* [Map OpenAPI routes to commands, events and queries](https://github.com/event-catalog/generators/tree/main/examples/generator-openapi/mapping-commands-events-queries)
  * An example of using the OpenAPI plugin to map OpenAPI routes to commands, events and queries.
* [Map many OpenAPI files to a single service](https://github.com/event-catalog/generators/tree/main/examples/generator-openapi/mapping-many-openapi-files-to-a-service)
  * An example of using the OpenAPI plugin to map many OpenAPI files to a single service. This can be useful if your service exposes multiple APIs.
