Skip to content

Commit

Permalink
Merge pull request #4737 from ashanthamara/actions
Browse files Browse the repository at this point in the history
Update the action management APIs with new action retrieval by action id API.
  • Loading branch information
himeshsiriwardana authored Sep 6, 2024
2 parents 5e5be2b + 738d8ec commit 8dd49f9
Show file tree
Hide file tree
Showing 2 changed files with 208 additions and 0 deletions.
104 changes: 104 additions & 0 deletions en/asgardeo/docs/apis/restapis/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl
source: |
Expand Down Expand Up @@ -148,13 +154,81 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl
source: |
curl --location 'https://api.asgardeo.io/t/{organization-name}/api/server/v1/actions/{actionType}' \
-H 'Authorization: Bearer {bearer_token}'
/actions/{actionType}/{actionId}:
get:
tags:
- Actions Endpoint
operationId: getActionByActionId
summary: Retrieve Action by ID
description: "This API provides the capability to retrieve the action by action Id. \n\n
<b>Scope (Permission) required:</b> ``internal_action_mgt_view``\n\n"
parameters:
- name: actionType
in: path
description: Name of the Action Type.
required: true
schema:
enum:
- preIssueAccessToken
- name: actionId
in: path
description: Unique identifier of the action.
required: true
schema:
type: string
responses:
'200':
description: Action is found for the given action type and id.
content:
application/json:
schema:
$ref: '#/components/schemas/ActionResponse'
'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'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl
source: |
curl --location 'https://api.asgardeo.io/t/{organization-name}/api/server/v1/actions/{actionType}/{actionId}' \
-H 'Authorization: Bearer {bearer_token}'
patch:
tags:
- Actions Endpoint
Expand Down Expand Up @@ -212,6 +286,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl
source: |
Expand Down Expand Up @@ -282,6 +362,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl
source: |
Expand Down Expand Up @@ -339,6 +425,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl
source: |
Expand Down Expand Up @@ -396,6 +488,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl
source: |
Expand Down Expand Up @@ -470,6 +568,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl(Bearer)
source: |
Expand Down
104 changes: 104 additions & 0 deletions en/identity-server/next/docs/apis/restapis/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl
source: |
Expand Down Expand Up @@ -153,13 +159,81 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl
source: |
curl --location 'https://localhost:9443/api/server/v1/actions/{actionType}' \
-H 'Authorization: Basic YWRtaW46YWRtaW4='
/actions/{actionType}/{actionId}:
get:
tags:
- Actions Endpoint
operationId: getActionByActionId
summary: Retrieve Action by ID
description: "This API provides the capability to retrieve the action by action Id. \n\n
<b>Scope (Permission) required:</b> ``internal_action_mgt_view``\n\n"
parameters:
- name: actionType
in: path
description: Name of the Action Type.
required: true
schema:
enum:
- preIssueAccessToken
- name: actionId
in: path
description: Unique identifier of the action.
required: true
schema:
type: string
responses:
'200':
description: Action is found for the given action type and id.
content:
application/json:
schema:
$ref: '#/components/schemas/ActionResponse'
'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'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl
source: |
curl --location 'https://localhost:9443/api/server/v1/actions/{actionType}/{actionId}' \
-H 'Authorization: Basic YWRtaW46YWRtaW4='
patch:
tags:
- Actions Endpoint
Expand Down Expand Up @@ -217,6 +291,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl
source: |
Expand Down Expand Up @@ -287,6 +367,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl
source: |
Expand Down Expand Up @@ -344,6 +430,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl
source: |
Expand Down Expand Up @@ -401,6 +493,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl
source: |
Expand Down Expand Up @@ -475,6 +573,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'501':
description: Not Implemented
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-codeSamples:
- lang: Curl(Bearer)
source: |
Expand Down

0 comments on commit 8dd49f9

Please sign in to comment.