Skip to content

Commit

Permalink
feat(sdk): automated oas update
Browse files Browse the repository at this point in the history
  • Loading branch information
kong-apiops committed Nov 26, 2024
1 parent ec61d1b commit 18f7692
Show file tree
Hide file tree
Showing 12 changed files with 342 additions and 61 deletions.
161 changes: 160 additions & 1 deletion api-specs/Konnect/control-planes-config/control-planes-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ info:
version: 0.0.1
servers:
- url: 'https://us.api.konghq.com/v2'
description: United-States Production region
- url: 'https://eu.api.konghq.com/v2'
description: Europe Production region
- url: 'https://au.api.konghq.com/v2'
description: Australia Production region
- url: 'https://me.api.konghq.com/v2'
description: Middle-East Production region
paths:
'/control-planes/{controlPlaneId}/expected-config-hash':
get:
Expand Down Expand Up @@ -263,6 +268,27 @@ paths:
- ACLs
parameters:
- $ref: '#/components/parameters/controlPlaneId'
'/control-planes/{controlPlaneId}/core-entities/acls/{ACLId}':
get:
operationId: get-acl
summary: Fetch an ACL
description: Get an ACL using ID.
responses:
'200':
description: Successfully fetched ACL
content:
application/json:
schema:
$ref: '#/components/schemas/ACL'
'401':
$ref: '#/components/responses/HTTP401Error'
'404':
description: Resource does not exist
tags:
- ACLs
parameters:
- $ref: '#/components/parameters/ACLId'
- $ref: '#/components/parameters/controlPlaneId'
'/control-planes/{controlPlaneId}/core-entities/basic-auths':
get:
operationId: list-basic-auth
Expand Down Expand Up @@ -294,6 +320,27 @@ paths:
- Basic-auth credentials
parameters:
- $ref: '#/components/parameters/controlPlaneId'
'/control-planes/{controlPlaneId}/core-entities/basic-auths/{BasicAuthId}':
get:
operationId: get-basic-auth
summary: Fetch a Basic-auth credential
description: Get a Basic-auth credential using ID.
responses:
'200':
description: Successfully fetched Basic-auth credential
content:
application/json:
schema:
$ref: '#/components/schemas/BasicAuth'
'401':
$ref: '#/components/responses/HTTP401Error'
'404':
description: Resource does not exist
tags:
- Basic-auth credentials
parameters:
- $ref: '#/components/parameters/BasicAuthId'
- $ref: '#/components/parameters/controlPlaneId'
'/control-planes/{controlPlaneId}/core-entities/ca_certificates':
get:
operationId: list-ca_certificate
Expand Down Expand Up @@ -730,6 +777,21 @@ paths:
tags:
- Consumer Groups
'/control-planes/{controlPlaneId}/core-entities/consumer_groups/{ConsumerGroupId}/consumers':
delete:
operationId: remove-all-consumers-from-consumer-group
summary: Remove consumers from consumer group
description: |-
**Pre-release Endpoint**
This endpoint is currently in beta and is subject to change.
Removes all consumers from a consumer groups. This operation does not delete the consumer group.
responses:
'204':
description: Consumers removed from group
'404':
description: Consumer group or consumer association does not exist
tags:
- Consumer Groups
get:
operationId: list-consumers-for-consumer-group
summary: List all Consumers in a Consumer Group
Expand Down Expand Up @@ -1024,6 +1086,19 @@ paths:
tags:
- Consumers
'/control-planes/{controlPlaneId}/core-entities/consumers/{ConsumerId}/consumer_groups':
delete:
operationId: remove-consumer-from-all-consumer-groups
summary: Remove consumer from consumer group
description: Removes a consumer from all consumer groups. This operation does not delete the consumer group.
parameters:
- $ref: '#/components/parameters/ConsumerId'
responses:
'204':
description: Consumer removed from all groups
'404':
description: Consumer does not exist
tags:
- Consumer Groups
get:
operationId: list-consumer-groups-for-consumer
summary: List all Consumer Groups a Consumer belongs to
Expand Down Expand Up @@ -1886,6 +1961,27 @@ paths:
- HMAC-auth credentials
parameters:
- $ref: '#/components/parameters/controlPlaneId'
'/control-planes/{controlPlaneId}/core-entities/hmac-auths/{HMACAuthId}':
get:
operationId: get-hmac-auth
summary: Fetch a HMAC-auth credential
description: Get a HMAC-auth credential using ID.
responses:
'200':
description: Successfully fetched HMAC-auth credential
content:
application/json:
schema:
$ref: '#/components/schemas/HMACAuth'
'401':
$ref: '#/components/responses/HTTP401Error'
'404':
description: Resource does not exist
tags:
- HMAC-auth credentials
parameters:
- $ref: '#/components/parameters/HMACAuthId'
- $ref: '#/components/parameters/controlPlaneId'
'/control-planes/{controlPlaneId}/core-entities/jwts':
get:
operationId: list-jwt
Expand Down Expand Up @@ -1917,6 +2013,27 @@ paths:
- JWTs
parameters:
- $ref: '#/components/parameters/controlPlaneId'
'/control-planes/{controlPlaneId}/core-entities/jwts/{JWTId}':
get:
operationId: get-jwt
summary: Fetch a JWT
description: Get a JWT using ID.
responses:
'200':
description: Successfully fetched JWT
content:
application/json:
schema:
$ref: '#/components/schemas/JWT'
'401':
$ref: '#/components/responses/HTTP401Error'
'404':
description: Resource does not exist
tags:
- JWTs
parameters:
- $ref: '#/components/parameters/JWTId'
- $ref: '#/components/parameters/controlPlaneId'
'/control-planes/{controlPlaneId}/core-entities/key-auths':
get:
operationId: list-key-auth
Expand Down Expand Up @@ -1948,6 +2065,27 @@ paths:
- API-keys
parameters:
- $ref: '#/components/parameters/controlPlaneId'
'/control-planes/{controlPlaneId}/core-entities/key-auths/{KeyAuthId}':
get:
operationId: get-key-auth
summary: Fetch an API-key
description: Get an API-key using ID.
responses:
'200':
description: Successfully fetched API-key
content:
application/json:
schema:
$ref: '#/components/schemas/KeyAuth'
'401':
$ref: '#/components/responses/HTTP401Error'
'404':
description: Resource does not exist
tags:
- API-keys
parameters:
- $ref: '#/components/parameters/KeyAuthId'
- $ref: '#/components/parameters/controlPlaneId'
'/control-planes/{controlPlaneId}/core-entities/key-sets':
get:
operationId: list-key-set
Expand Down Expand Up @@ -2305,6 +2443,27 @@ paths:
- MTLS-auth credentials
parameters:
- $ref: '#/components/parameters/controlPlaneId'
'/control-planes/{controlPlaneId}/core-entities/mtls-auths/{MTLSAuthId}':
get:
operationId: get-mtls-auth
summary: Fetch a MTLS-auth credential
description: Get a MTLS-auth credential using ID.
responses:
'200':
description: Successfully fetched MTLS-auth credential
content:
application/json:
schema:
$ref: '#/components/schemas/MTLSAuth'
'401':
$ref: '#/components/responses/HTTP401Error'
'404':
description: Resource does not exist
tags:
- MTLS-auth credentials
parameters:
- $ref: '#/components/parameters/MTLSAuthId'
- $ref: '#/components/parameters/controlPlaneId'
'/control-planes/{controlPlaneId}/core-entities/plugins':
get:
operationId: list-plugin
Expand Down Expand Up @@ -5554,7 +5713,6 @@ components:
description: The configuration properties for the Vault which can be found on the vaults' documentation page.
type: object
additionalProperties: true
nullable: true
created_at:
description: Unix epoch when the resource was created.
type: integer
Expand Down Expand Up @@ -5595,6 +5753,7 @@ components:
required:
- name
- prefix
- config
BaseError:
description: standard error
type: object
Expand Down
8 changes: 5 additions & 3 deletions api-specs/Konnect/v0/yaml/mesh-control-planes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ info:
url: 'https://konghq.com'
servers:
- url: 'https://us.api.konghq.com/v1'
description: US Public API
description: United-States Production region
- url: 'https://eu.api.konghq.com/v1'
description: EU Public API
description: Europe Production region
- url: 'https://au.api.konghq.com/v1'
description: AU Public API
description: Australia Production region
- url: 'https://me.api.konghq.com/v1'
description: Middle-East Production region
paths:
/mesh/control-planes:
get:
Expand Down
10 changes: 5 additions & 5 deletions api-specs/Konnect/v1/yaml/ksearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ info:
name: Kong
url: 'https://konghq.com'
servers:
- url: 'https://global.api.konghq.com/v1'
description: Global Base URL
- url: 'https://us.api.konghq.com/v1'
description: US Region Base URL
description: United-States Production region
- url: 'https://eu.api.konghq.com/v1'
description: EU Region Base URL
description: Europe Production region
- url: 'https://au.api.konghq.com/v1'
description: AU Region Base URL
description: Australia Production region
- url: 'https://me.api.konghq.com/v1'
description: Middle-East Production region
paths:
/search:
get:
Expand Down
8 changes: 5 additions & 3 deletions api-specs/Konnect/v2/yaml/analytics-reports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ info:
url: 'https://cloud.konghq.com'
servers:
- url: 'https://us.api.konghq.com/v2'
description: US Region Konnect Platform Base URL
description: United-States Production region
- url: 'https://eu.api.konghq.com/v2'
description: EU Region Konnect Platform Base URL
description: Europe Production region
- url: 'https://au.api.konghq.com/v2'
description: AU Region Konnect Platform Base URL
description: Australia Production region
- url: 'https://me.api.konghq.com/v2'
description: Middle-East Production region
paths:
/reports:
get:
Expand Down
8 changes: 5 additions & 3 deletions api-specs/Konnect/v2/yaml/analytics-requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ info:
url: 'https://cloud.konghq.com'
servers:
- url: 'https://us.api.konghq.com/v2'
description: US Region Konnect Platform Base URL
description: United-States Production region
- url: 'https://eu.api.konghq.com/v2'
description: EU Region Konnect Platform Base URL
description: Europe Production region
- url: 'https://au.api.konghq.com/v2'
description: AU Region Konnect Platform Base URL
description: Australia Production region
- url: 'https://me.api.konghq.com/v2'
description: Middle-East Production region
paths:
/api-requests:
post:
Expand Down
Loading

0 comments on commit 18f7692

Please sign in to comment.