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 Dec 7, 2023
1 parent ce38c15 commit e0b8297
Showing 1 changed file with 87 additions and 21 deletions.
108 changes: 87 additions & 21 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 @@ -1862,6 +1881,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 @@ -2468,8 +2502,6 @@ components:
- parent_document_id
- slug
- title
- created_at
- updated_at
properties:
id:
type: string
Expand All @@ -2490,10 +2522,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 +2545,6 @@ components:
- slug
- metadata
- children
- created_at
- updated_at
properties:
id:
type: string
Expand All @@ -2544,10 +2570,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 +3204,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 +3416,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 +3637,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 +3721,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 e0b8297

Please sign in to comment.