Skip to content

Commit

Permalink
Automated OAS update: openapi.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kong-apiops committed Jan 12, 2024
1 parent 3de5fba commit 08b4135
Showing 1 changed file with 118 additions and 24 deletions.
142 changes: 118 additions & 24 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,8 @@ paths:
- portalAccessToken: []
/api/v2/applications/{applicationId}/product-versions/{productVersionId}/granted-scopes:
get:
x-unstable: true
summary: Get the granted scopes
description: >-
**Pre-release Endpoint**
This endpoint is currently in beta and is subject to change.
description: >
Retrieves the granted scopes of a specified application and product
version directly from the IDP.
Expand All @@ -279,8 +273,8 @@ paths:
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'422':
$ref: '#/components/responses/GetGrantedScopesProductVersion422Response'
tags:
- applications
security:
Expand Down Expand Up @@ -391,6 +385,31 @@ paths:
- registrations
security:
- portalAccessToken: []
/api/v2/applications/{applicationId}/registrations/{registrationId}/granted-scopes:
get:
summary: Get the granted scopes of an application registration
description: >
Retrieves the granted scopes of a specified product registration
directly from the IDP for an application.
Will return 409 if this feature is not supported by the application.
operationId: get-application-registration-granted-scopes
parameters:
- $ref: '#/components/parameters/ApplicationId'
- $ref: '#/components/parameters/RegistrationId'
responses:
'200':
$ref: '#/components/responses/GetGrantedScopes'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/UnprocessableContent'
tags:
- registrations
security:
- portalAccessToken: []
/api/v2/developer:
post:
operationId: register
Expand Down Expand Up @@ -1410,6 +1429,13 @@ components:
example: Forbidden
allOf:
- $ref: '#/components/schemas/BaseError'
ApplicationAuthStrategyId:
description: >-
ID of the application auth strategy to use for the application. If null
or not included, the default application auth strategy will be used.
type: string
format: uuid
nullable: true
CreateCredentialPayload:
additionalProperties: false
type: object
Expand Down Expand Up @@ -1455,6 +1481,8 @@ components:
redirect_uri:
type: string
nullable: true
application_auth_strategy_id:
$ref: '#/components/schemas/ApplicationAuthStrategyId'
created_at:
$ref: '#/components/schemas/CreatedAt'
updated_at:
Expand Down Expand Up @@ -1537,6 +1565,8 @@ components:
description: A brief description of the application
type: string
maxLength: 255
application_auth_strategy_id:
$ref: '#/components/schemas/ApplicationAuthStrategyId'
ApplicationCreationResponse:
additionalProperties: false
type: object
Expand All @@ -1549,6 +1579,7 @@ components:
- description
- created_at
- updated_at
- application_auth_strategy_id
properties:
id:
$ref: '#/components/schemas/UUID'
Expand All @@ -1573,6 +1604,8 @@ components:
type: string
client_secret:
type: string
application_auth_strategy_id:
$ref: '#/components/schemas/ApplicationAuthStrategyId'
created_at:
$ref: '#/components/schemas/CreatedAt'
updated_at:
Expand Down Expand Up @@ -1626,6 +1659,8 @@ components:
type: string
example: https://example.com/callback
nullable: true
application_auth_strategy_id:
$ref: '#/components/schemas/ApplicationAuthStrategyId'
created_at:
$ref: '#/components/schemas/CreatedAt'
updated_at:
Expand Down Expand Up @@ -1862,6 +1897,21 @@ components:
type: array
items:
type: string
UnprocessableContentError:
type: object
properties:
status:
example: 422
title:
example: Unprocessable Content
type:
example: https://httpstatuses.com/422
instance:
example: kong:trace:1234567891
detail:
example: Unprocessable Content
allOf:
- $ref: '#/components/schemas/BaseError'
AuthenticateRequest:
type: object
additionalProperties: false
Expand Down Expand Up @@ -2219,18 +2269,30 @@ components:
- registration_configs
RegistrationConfiguration:
type: object
additionalProperties: false
required:
- name
properties:
id:
$ref: '#/components/schemas/UUID'
auth_methods:
type: array
items:
type: string
credential_type:
$ref: '#/components/schemas/CredentialType'
name:
type: string
enum:
- key-auth
- openid-connect
available_scopes:
type: array
items:
type: string
CredentialType:
type: string
enum:
- client_credentials
- self_managed_client_credentials
- key_auth
LatestVersion:
type: object
additionalProperties: false
Expand Down Expand Up @@ -2468,8 +2530,6 @@ components:
- parent_document_id
- slug
- title
- created_at
- updated_at
properties:
id:
type: string
Expand All @@ -2490,10 +2550,6 @@ components:
type: string
description: the title of the document
example: Getting Started
created_at:
$ref: '#/components/schemas/CreatedAt'
updated_at:
$ref: '#/components/schemas/UpdatedAt'
ListDocuments:
type: object
additionalProperties: false
Expand All @@ -2517,8 +2573,6 @@ components:
- slug
- metadata
- children
- created_at
- updated_at
properties:
id:
type: string
Expand All @@ -2544,10 +2598,6 @@ components:
author: Jane Doe
description: This is a description
keywords: hello, world
created_at:
$ref: '#/components/schemas/CreatedAt'
updated_at:
$ref: '#/components/schemas/UpdatedAt'
children:
type: array
items:
Expand Down Expand Up @@ -3182,6 +3232,18 @@ components:
application/json:
schema:
$ref: '#/components/schemas/GetGrantedScopesProductVersionResponse'
examples:
GetGrantedScopesProductVersion200Response:
$ref: '#/components/examples/GetGrantedScopesProductVersion200Response'
GetGrantedScopesProductVersion422Response:
description: Get granted with application using unsupported IDP.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/UnprocessableContentError'
examples:
GetGrantedScopesProductVersion422Example:
$ref: '#/components/examples/GetGrantedScopesProductVersion422Example'
BadRequest:
description: Bad Request
content:
Expand Down Expand Up @@ -3382,6 +3444,21 @@ components:
application/json:
schema:
$ref: '#/components/schemas/ListRegistrationsResponse'
GetGrantedScopes:
description: Get granted scopes response.
content:
application/json:
schema:
$ref: '#/components/schemas/GetGrantedScopesResponse'
UnprocessableContent:
description: Unprocessable Content
content:
application/problem+json:
schema:
$ref: '#/components/schemas/UnprocessableContentError'
examples:
UnprocessableContentExample:
$ref: '#/components/examples/UnprocessableContentExample'
SearchResponse:
description: Search Results
content:
Expand Down Expand Up @@ -3588,6 +3665,17 @@ components:
title: Forbidden
instance: kong:trace:2723154947768991354
detail: You do not have permission to perform this action
GetGrantedScopesProductVersion200Response:
value:
scopes:
- openid
GetGrantedScopesProductVersion422Example:
value:
status: 422
title: Unsupported IDP
type: https://kongapi.info/konnect/portal/granted-scopes-unavailable
detail: This feature is not supported by the application.
instance: kong:trace:2724154947768991354
NotFoundExample:
value:
status: 404
Expand Down Expand Up @@ -3661,6 +3749,12 @@ components:
register: false
view: true
view_documentation: true
UnprocessableContentExample:
value:
status: 422
title: Unprocessable Content
instance: kong:trace:8347343766220159419
detail: The requested operation cannot be performed with the provided data
SearchResponseExample:
value:
data:
Expand Down

0 comments on commit 08b4135

Please sign in to comment.