Skip to content

Commit 32e6c42

Browse files
committed
WIP - 2 - add Admin API reference
1 parent f1d6549 commit 32e6c42

File tree

2 files changed

+165
-0
lines changed

2 files changed

+165
-0
lines changed

api-specs/Gateway-EE/latest/kong-ee.yaml

+164
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,14 @@ components:
252252
description: |
253253
After filter could be used to request audit log data that was recorded after certain time (inclusive).
254254
It can either be a timestamp as Unix Epoch or a string following RFC3339 Schema (without fractions of a second) - ex: '2024-04-25T15:03:24Z'
255+
PartialId:
256+
name: partial_id
257+
in: path
258+
required: true
259+
description: ID of the Partial
260+
schema:
261+
type: string
262+
example: 2747d1e5-8246-4f65-a939-b392f1ee17f8
255263
schemas:
256264
Admin:
257265
type: object
@@ -635,6 +643,23 @@ components:
635643
updated_at:
636644
description: Unix epoch when the resource was last updated.
637645
type: integer
646+
partials:
647+
description: List of partials linked to that plugin
648+
type: array
649+
items:
650+
type: object
651+
properties:
652+
id:
653+
type: string
654+
example: ce44eef5-41ed-47f6-baab-f725cecf98c7
655+
format: uuid
656+
name:
657+
type: string
658+
example: my-partial-1
659+
path:
660+
type: string
661+
description: The path at which the Partial configuration will be applied at.
662+
example: config.redis
638663
type: object
639664
Route:
640665
description: Route entities define rules to match client requests. Each Route is associated with a Service, and a Service may have multiple Routes associated to it. Every request matching a given Route will be proxied to its associated Service. The combination of Routes and Services (and the separation of concerns between them) offers a powerful routing mechanism with which it is possible to define fine-grained entry-points in Kong leading to different upstream services of your infrastructure. You need at least one matching rule that applies to the protocol being matched by the Route.
@@ -1416,6 +1441,43 @@ components:
14161441
- type: string
14171442
pattern: '^(\d+|\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z)$'
14181443
- type: integer
1444+
Partial:
1445+
type: object
1446+
properties:
1447+
id:
1448+
type: string
1449+
example: ce44eef5-41ed-47f6-baab-f725cecf98c7
1450+
format: uuid
1451+
name:
1452+
type: string
1453+
example: my-partial-1
1454+
type:
1455+
type: string
1456+
required: true
1457+
enum: [redis-ce, redis-ee]
1458+
config:
1459+
type: object
1460+
created_at:
1461+
description: Unix epoch when the resource was created.
1462+
type: number
1463+
created_at:
1464+
description: Unix epoch when the resource was udpated.
1465+
type: number
1466+
tags:
1467+
type: array
1468+
description: |
1469+
The name to associate with the given Key Set
1470+
items:
1471+
type: string
1472+
PluginLink:
1473+
type: object
1474+
properties:
1475+
id:
1476+
type: string
1477+
example: ce44eef5-41ed-47f6-baab-f725cecf98c7
1478+
format: uuid
1479+
name:
1480+
type: string
14191481
responses:
14201482
HTTP401Error:
14211483
content:
@@ -5394,6 +5456,8 @@ components:
53945456
ordering:
53955457
before:
53965458
- plugin-name
5459+
partials:
5460+
- id: ce44eef5-41ed-47f6-baab-f725cecf98c7
53975461
properties:
53985462
name:
53995463
type: string
@@ -5466,6 +5530,15 @@ components:
54665530
type: array
54675531
items:
54685532
type: string
5533+
partials:
5534+
type: array
5535+
items:
5536+
type: object
5537+
properties:
5538+
id:
5539+
type: string
5540+
description: If provided the Plugin will be linked to given Partial
5541+
nullable: true
54695542
examples:
54705543
request example:
54715544
value:
@@ -16390,6 +16463,97 @@ paths:
1639016463
tags:
1639116464
- cache
1639216465

16466+
'/partials':
16467+
get:
16468+
summary: List all Partials
16469+
operationId: listPartials
16470+
responses:
16471+
'200':
16472+
description: A list of all Partials.
16473+
content:
16474+
application/json:
16475+
schema:
16476+
type: object
16477+
properties:
16478+
data:
16479+
type: array
16480+
items:
16481+
$ref: '#/components/schemas/Partial'
16482+
next:
16483+
type: string
16484+
nullable: true
16485+
post:
16486+
summary: Create a new Partial
16487+
operationId: createPartial
16488+
responses:
16489+
'201':
16490+
description: Partial successfully created.
16491+
content:
16492+
application/json:
16493+
schema:
16494+
$ref: '#/components/schemas/Partial'
16495+
'/partials/{id}':
16496+
get:
16497+
summary: Get a specific Partial
16498+
operationId: getPartial
16499+
parameters:
16500+
- $ref: '#/components/parameters/PartialId'
16501+
responses:
16502+
'200':
16503+
description: Details of the specified Partial.
16504+
content:
16505+
application/json:
16506+
schema:
16507+
$ref: '#/components/schemas/Partial'
16508+
put:
16509+
summary: Update / Upsert a specific Partial
16510+
operationId: upsertPartial
16511+
parameters:
16512+
- $ref: '#/components/parameters/PartialId'
16513+
patch:
16514+
summary: Update a specific Partial
16515+
operationId: updatePartial
16516+
parameters:
16517+
- $ref: '#/components/parameters/PartialId'
16518+
responses:
16519+
'200':
16520+
description: Partial successfully updated.
16521+
content:
16522+
application/json:
16523+
schema:
16524+
$ref: '#/components/schemas/Partial'
16525+
delete:
16526+
summary: Delete a specific Partial
16527+
operationId: deletePartial
16528+
parameters:
16529+
- $ref: '#/components/parameters/PartialId'
16530+
responses:
16531+
'204':
16532+
description: Partial successfully deleted.
16533+
16534+
/partials/{id}/links:
16535+
get:
16536+
summary: List Plugins linked to a Partial
16537+
operationId: listPartialLinks
16538+
parameters:
16539+
- $ref: '#/components/parameters/PartialId'
16540+
responses:
16541+
'200':
16542+
description: Plugins linked to the Partial.
16543+
content:
16544+
application/json:
16545+
schema:
16546+
type: object
16547+
properties:
16548+
data:
16549+
type: array
16550+
items:
16551+
$ref: '#/components/schemas/PluginLink'
16552+
count:
16553+
type: integer
16554+
next:
16555+
type: string
16556+
nullable: true
1639316557
servers:
1639416558
- description: Default Admin API URL
1639516559
url: '{protocol}://{hostname}:{port}{path}'

app/_src/gateway/admin-api/index_latest.md

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ See the following links for individual entity documentation:
5050
| [Filter Chains](/gateway/api/admin-ee/latest/#/filter-chains/get-filter-chains){:target="_blank"} | [Licenses](/gateway/api/admin-ee/latest/#/licenses/get-licenses){:target="_blank"} | [Workspaces](/gateway/api/admin-ee/latest/#/Workspaces/list-workspace){:target="_blank"} |
5151
| [RBAC](/gateway/api/admin-ee/latest/#/rbac/get-rbac-users){:target="_blank"} | [Admins](/gateway/api/admin-ee/latest/#/admins/get-admins){:target="_blank"} | [Consumer Groups](/gateway/api/admin-ee/latest/#/consumer_groups/){:target="_blank"} |
5252
| [Event Hooks](/gateway/api/admin-ee/latest/#/Event-hooks/get-event-hooks){:target="_blank"} | [Keyring and Data Encryption](/gateway/api/admin-ee/latest/#/Keyring/get-keyring){:target="_blank"} | [Audit Logs](/gateway/api/admin-ee/latest/#/audit-logs/get-audit-requests){:target="_blank"} |
53+
| [Partials](/gateway/api/admin-ee/latest/#/partials){:target="_blank"} | | |
5354
{% endnavtab %}
5455
{% navtab OSS endpoints %}
5556
| [Information Routes](/gateway/api/admin-oss/latest/#/Information/get-endpoints){:target="_blank"} | [Health Routes](/gateway/api/admin-oss/latest/#/Information/get-status){:target="_blank"} | [Tags](/gateway/api/admin-oss/latest/#/tags/get-tags){:target="_blank"} |

0 commit comments

Comments
 (0)