-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Autodocs] PDK and API documentation (#5882)
* PDK docs * vale * fix if_version * API specs * kong.vault fix
- Loading branch information
Showing
10 changed files
with
8,088 additions
and
33 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
# | ||
# WARNING: this file was auto-generated by a script. | ||
# DO NOT edit this file directly. Instead, send a pull request to change | ||
# https://github.com/Kong/kong/tree/master/autodoc/pdk/ldoc/ldoc.ltp | ||
# or its associated files | ||
# | ||
title: kong.plugin | ||
pdk: true | ||
toc: true | ||
source_url: https://github.com/Kong/kong/tree/master/kong/pdk | ||
--- | ||
|
||
<!-- Plugin related APIs --> | ||
|
||
|
||
|
||
## kong.plugin.get_id() | ||
|
||
Returns the instance ID of the plugin. | ||
|
||
**Phases** | ||
|
||
* rewrite, access, header_filter, response, body_filter, log | ||
|
||
**Returns** | ||
|
||
* `string`: The ID of the running plugin | ||
|
||
|
||
**Usage** | ||
|
||
``` lua | ||
kong.request.get_id() -- "123e4567-e89b-12d3-a456-426614174000" | ||
``` | ||
|
||
|
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
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
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
Oops, something went wrong.