Skip to content

Commit

Permalink
Merge pull request #4716 from JeethJJ/dcr-and-scope-update
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshsiriwardana authored Aug 16, 2024
2 parents d503ea2 + 51050dc commit cdbef65
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 0 deletions.
57 changes: 57 additions & 0 deletions en/identity-server/7.0.0/docs/apis/restapis/api-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,53 @@ paths:
]'
x-codegen-request-body-name: body
/api-resources/{apiResourceId}/scopes/{scopeName}:
patch:
tags:
- API Resource Scopes
summary: Patch scope specified by the name
description: >
Patch scope specified by the name. Patch operation only supports "displayName" and "description" fields at the moment.
<b>Permission required:</b> <br>
* /permission/admin/manage/identity/apiresourcemgt/update <br>
<b>Scope required:</b> <br>
* internal_api_resource_update
parameters:
- $ref: '#/components/parameters/apiResourceId'
- $ref: '#/components/parameters/scopeName'
responses:
204:
description: Not Content
400:
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
401:
description: Unauthorized
403:
description: Forbidden
404:
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
500:
description: Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'

requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ScopePatchModel'
description: This represents the scopes to be patched.
required: true

delete:
tags:
- API Resource Scopes
Expand Down Expand Up @@ -1024,6 +1071,16 @@ components:
type: string
example: "Allows writing greetings"

ScopePatchModel:
type: object
properties:
displayName:
type: string
example: "Write Greetings"
description:
type: string
example: "Allows writing greetings"

SubscribedApplicationGetModel:
type: object
properties:
Expand Down
6 changes: 6 additions & 0 deletions en/identity-server/7.0.0/docs/apis/restapis/oauth-dcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,8 @@ components:
type: string
request_object_encryption_enc:
type: string
ext_allowed_audience:
type: string
updateRequest:
type: object
properties:
Expand Down Expand Up @@ -525,6 +527,8 @@ components:
type: string
request_object_encryption_enc:
type: string
ext_allowed_audience:
type: string
application:
type: object
properties:
Expand Down Expand Up @@ -565,6 +569,8 @@ components:
type: boolean
ext_public_client:
type: boolean
ext_allowed_audience:
type: string
error:
type: object
properties:
Expand Down
57 changes: 57 additions & 0 deletions en/identity-server/next/docs/apis/restapis/api-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,53 @@ paths:
]'
x-codegen-request-body-name: body
/api-resources/{apiResourceId}/scopes/{scopeName}:
patch:
tags:
- API Resource Scopes
summary: Patch scope specified by the name
description: >
Patch scope specified by the name. Patch operation only supports "displayName" and "description" fields at the moment.
<b>Permission required:</b> <br>
* /permission/admin/manage/identity/apiresourcemgt/update <br>
<b>Scope required:</b> <br>
* internal_api_resource_update
parameters:
- $ref: '#/components/parameters/apiResourceId'
- $ref: '#/components/parameters/scopeName'
responses:
204:
description: Not Content
400:
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
401:
description: Unauthorized
403:
description: Forbidden
404:
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
500:
description: Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'

requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ScopePatchModel'
description: This represents the scopes to be patched.
required: true

delete:
tags:
- API Resource Scopes
Expand Down Expand Up @@ -1024,6 +1071,16 @@ components:
type: string
example: "Allows writing greetings"

ScopePatchModel:
type: object
properties:
displayName:
type: string
example: "Write Greetings"
description:
type: string
example: "Allows writing greetings"

SubscribedApplicationGetModel:
type: object
properties:
Expand Down
6 changes: 6 additions & 0 deletions en/identity-server/next/docs/apis/restapis/oauth-dcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,8 @@ components:
type: string
request_object_encryption_enc:
type: string
ext_allowed_audience:
type: string
updateRequest:
type: object
properties:
Expand Down Expand Up @@ -525,6 +527,8 @@ components:
type: string
request_object_encryption_enc:
type: string
ext_allowed_audience:
type: string
application:
type: object
properties:
Expand Down Expand Up @@ -565,6 +569,8 @@ components:
type: boolean
ext_public_client:
type: boolean
ext_allowed_audience:
type: string
error:
type: object
properties:
Expand Down

0 comments on commit cdbef65

Please sign in to comment.