Skip to content

Commit

Permalink
Add #39 Update api key response to have timestamp and expiryTimestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
albinpa authored and georgepadayatti committed Nov 9, 2023
1 parent e4bfa75 commit ebd1426
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 45 deletions.
102 changes: 63 additions & 39 deletions openapi/v2023.11.1/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,10 @@ paths:
type: object
properties:
apiKeys:
$ref: '#/paths/~1config~1admin~1apikey~1%7BapiKeyId%7D/delete/responses/200/content/application~1json/schema'
items:
allOf:
- $ref: '#/paths/~1config~1admin~1apikey~1%7BapiKeyId%7D/delete/responses/200/content/application~1json/schema/allOf/0'
- $ref: '#/paths/~1config~1admin~1apikey~1%7BapiKeyId%7D/delete/responses/200/content/application~1json/schema/allOf/1'
pagination:
$ref: '#/components/schemas/Pagination'
description: ''
Expand All @@ -2256,7 +2259,7 @@ paths:
schema:
properties:
apiKey:
$ref: '#/paths/~1config~1admin~1apikey~1%7BapiKeyId%7D/delete/responses/200/content/application~1json/schema'
$ref: '#/paths/~1config~1admin~1apikey~1%7BapiKeyId%7D/delete/responses/200/content/application~1json/schema/allOf/0'
description: An object of type ApiKey
required:
- apiKey
Expand All @@ -2266,10 +2269,14 @@ paths:
content:
application/json:
schema:
type: object
properties:
apiKey:
$ref: '#/paths/~1config~1admin~1apikey~1%7BapiKeyId%7D/delete/responses/200/content/application~1json/schema'
allOf:
- $ref: '#/paths/~1config~1admin~1apikey~1%7BapiKeyId%7D/delete/responses/200/content/application~1json/schema/allOf/0'
- $ref: '#/paths/~1config~1admin~1apikey~1%7BapiKeyId%7D/delete/responses/200/content/application~1json/schema/allOf/1'
required:
- apiKey
type: object
description: 'A set consisting of the new ApiKey object created, together with the initial Revision object.'
'400':
description: bad input parameter
Expand Down Expand Up @@ -2299,7 +2306,7 @@ paths:
schema:
properties:
apiKey:
$ref: '#/paths/~1config~1admin~1apikey~1%7BapiKeyId%7D/delete/responses/200/content/application~1json/schema'
$ref: '#/paths/~1config~1admin~1apikey~1%7BapiKeyId%7D/delete/responses/200/content/application~1json/schema/allOf/0'
description: An object of type ApiKey
required:
- apiKey
Expand All @@ -2309,10 +2316,11 @@ paths:
content:
application/json:
schema:
type: object
properties:
apiKey:
$ref: '#/paths/~1config~1admin~1apikey~1%7BapiKeyId%7D/delete/responses/200/content/application~1json/schema'
allOf:
- $ref: '#/paths/~1config~1admin~1apikey~1%7BapiKeyId%7D/delete/responses/200/content/application~1json/schema/allOf/0'
- $ref: '#/paths/~1config~1admin~1apikey~1%7BapiKeyId%7D/delete/responses/200/content/application~1json/schema/allOf/1'
description: ''
'400':
description: bad input parameter
Expand All @@ -2335,38 +2343,51 @@ paths:
content:
application/json:
schema:
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'
allOf:
- type: object
title: ApiKey
description: Api key
x-not-in-database: false
required:
- scopes
properties:
id:
type: string
format: ''
example: ''
description: API key Id
name:
type: string
format: ''
example: ''
description: API key name
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'
- type: object
title: ApiKeyExtras
properties:
expiryTimestamp:
type: string
timestamp:
type: string
description: ''
'400':
description: bad input parameter
Expand Down Expand Up @@ -4138,6 +4159,9 @@ paths:
dataAgreement:
type: object
properties:
version:
type: string
description: Version of data agreement
purpose:
type: string
description: Name of purpose
Expand Down
5 changes: 5 additions & 0 deletions openapi/v2023.11.1/definitions/ApiKey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ properties:
format: ""
example: ""
description: "API key Id"
name:
type: string
format: ""
example: ""
description: "API key name"

scopes:
type: array
Expand Down
7 changes: 7 additions & 0 deletions openapi/v2023.11.1/definitions/ApiKeyExtras.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
type: object
title: ApiKeyExtras
properties:
expiryTimestamp:
type: string
timestamp:
type: string
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ properties:
dataAgreement:
type: object
properties:
version:
type: string
description: Version of data agreement
purpose:
type: string
description: Name of purpose
Expand Down
8 changes: 6 additions & 2 deletions openapi/v2023.11.1/paths/configCreateApikey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ responses:
content:
application/json:
schema:
type: object
properties:
apiKey:
$ref: ../definitions/ApiKey.yaml
allOf:
- $ref: ../definitions/ApiKey.yaml
- $ref: "../definitions/ApiKeyExtras.yaml"
required:
- apiKey
type: object
description: A set consisting of the new ApiKey object created, together with
the initial Revision object.
'400':
Expand Down
4 changes: 3 additions & 1 deletion openapi/v2023.11.1/paths/configDeleteApiKey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ responses:
content:
application/json:
schema:
$ref: ../definitions/ApiKey.yaml
allOf:
- $ref: ../definitions/ApiKey.yaml
- $ref: "../definitions/ApiKeyExtras.yaml"
description: ""
"400":
description: bad input parameter
Expand Down
5 changes: 4 additions & 1 deletion openapi/v2023.11.1/paths/configListApiKey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ responses:
type: object
properties:
apiKeys:
$ref: ../definitions/ApiKey.yaml
items:
allOf:
- $ref: ../definitions/ApiKey.yaml
- $ref: "../definitions/ApiKeyExtras.yaml"
pagination:
$ref: "../definitions/Pagination.yaml"
description: ""
Expand Down
5 changes: 3 additions & 2 deletions openapi/v2023.11.1/paths/configUpdateApiKey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ responses:
content:
application/json:
schema:
type: object
properties:
apiKey:
$ref: ../definitions/ApiKey.yaml
allOf:
- $ref: ../definitions/ApiKey.yaml
- $ref: "../definitions/ApiKeyExtras.yaml"
description: ""
"400":
description: bad input parameter
Expand Down

0 comments on commit ebd1426

Please sign in to comment.