-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: George J Padayatti <[email protected]>
- Loading branch information
1 parent
ca444d2
commit 8198991
Showing
8 changed files
with
304 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
type: object | ||
title: ApiKey | ||
description: "Api key" | ||
x-not-in-database: false | ||
|
||
required: | ||
- scopes | ||
properties: | ||
id: | ||
type: string | ||
format: "" | ||
example: "" | ||
description: "API key Id" | ||
|
||
scopes: | ||
type: array | ||
items: | ||
type: string | ||
enum: | ||
- config | ||
- audit | ||
- service | ||
- onboard | ||
description: "Scopes for API key" | ||
|
||
apiKey: | ||
type: string | ||
format: "" | ||
example: "" | ||
description: "API key" | ||
|
||
expiryInDays: | ||
type: integer | ||
format: "" | ||
default: 30 | ||
description: "Expiry in days. If expiry is 0, then default to 30 days" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
description: Unique ID of an object | ||
in: path | ||
name: apiKeyId | ||
required: true | ||
schema: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
description: CREATE - Create an API key | ||
operationId: configCreateApikey | ||
parameters: [] | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
properties: | ||
apiKey: | ||
$ref: ../definitions/ApiKey.yaml | ||
description: An object of type ApiKey | ||
required: | ||
- apiKey | ||
type: object | ||
responses: | ||
'200': | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
apiKey: | ||
$ref: ../definitions/ApiKey.yaml | ||
description: A set consisting of the new ApiKey object created, together with | ||
the initial Revision object. | ||
'400': | ||
description: bad input parameter | ||
security: | ||
- BearerAuth: [] | ||
summary: CREATE - Create an API key | ||
tags: | ||
- config | ||
x-specification-crudl-model: ApiKey | ||
x-specification-pii-or-sensitive: 'False' | ||
x-specification-scenario: '' | ||
x-specification-usecase: UC-C-PIC-A-001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
description: DELETE - Deletes an API key | ||
DataAgreement. | ||
operationId: configDeletePolicy | ||
parameters: | ||
- $ref: "../parameters/apiKeyId.yaml" | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../definitions/ApiKey.yaml | ||
description: "" | ||
"400": | ||
description: bad input parameter | ||
security: | ||
- BearerAuth: [] | ||
summary: DELETE - Deletes an API key | ||
tags: | ||
- config | ||
x-specification-crudl-model: ApiKey | ||
x-specification-pii-or-sensitive: "False" | ||
x-specification-scenario: "" | ||
x-specification-usecase: UC-C-PIC-A-004 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
description: READ - Read an API key | ||
operationId: configReadApiKey | ||
parameters: | ||
- $ref: "../parameters/apiKeyId.yaml" | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
apiKey: | ||
$ref: ../definitions/ApiKey.yaml | ||
description: "" | ||
"400": | ||
description: bad input parameter | ||
security: | ||
- BearerAuth: [] | ||
summary: READ - Read an API key | ||
tags: | ||
- config | ||
x-specification-crudl-model: ApiKey | ||
x-specification-pii-or-sensitive: "False" | ||
x-specification-scenario: "" | ||
x-specification-usecase: UC-C-PIC-A-003 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
description: UPDATE - Update an API key | ||
operationId: configUpdateApiKey | ||
parameters: | ||
- $ref: "../parameters/apiKeyId.yaml" | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
properties: | ||
apiKey: | ||
$ref: ../definitions/ApiKey.yaml | ||
description: An object of type ApiKey | ||
required: | ||
- apiKey | ||
type: object | ||
responses: | ||
"200": | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
apiKey: | ||
$ref: ../definitions/ApiKey.yaml | ||
description: "" | ||
"400": | ||
description: bad input parameter | ||
security: | ||
- BearerAuth: [] | ||
summary: UPDATE - Update an API key | ||
tags: | ||
- config | ||
x-specification-crudl-model: ApiKey | ||
x-specification-pii-or-sensitive: "False" | ||
x-specification-scenario: "" | ||
x-specification-usecase: UC-C-PIC-A-002 |