Skip to content

Commit

Permalink
fixed JWT API gateway definition
Browse files Browse the repository at this point in the history
  • Loading branch information
mfriesen committed Aug 1, 2023
1 parent acac8d6 commit 60eb79e
Show file tree
Hide file tree
Showing 11 changed files with 50 additions and 78 deletions.
18 changes: 7 additions & 11 deletions docs/openapi/openapi-iam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1465,15 +1465,15 @@
- ApiAuthorization: []
x-amazon-apigateway-integration:
$ref: '#/components/x-amazon-apigateway-integrations/lambdaApi201'
/shares/folders/{documentId}:
/shares/folders/{shareKey}:
patch:
operationId: UpdateFolderShare
description: Updates a folder share; ONLY available with FormKiQ Enterprise
tags:
- Document Shares
parameters:
- $ref: '#/components/parameters/siteIdParam'
- $ref: '#/components/parameters/documentIdParam'
- $ref: '#/components/parameters/shareKey'
requestBody:
required: true
content:
Expand Down Expand Up @@ -1504,14 +1504,14 @@
- ApiAuthorization: []
x-amazon-apigateway-integration:
$ref: '#/components/x-amazon-apigateway-integrations/lambdaApi200'
/shares/{documentId}:
/shares/{shareKey}:
delete:
operationId: DeleteShare
description: Delete a specific document share; ONLY available with FormKiQ Enterprise
tags:
- Document Shares
parameters:
- $ref: '#/components/parameters/documentIdParam'
- $ref: '#/components/parameters/shareKey'
responses:
"200":
description: 200 OK
Expand Down Expand Up @@ -2805,14 +2805,13 @@
UserShare:
type: object
properties:
documentId:
shareKey:
type: string
description: Document/Folder Identifier
description: Share Identifier
type:
type: string
enum:
- FOLDER
- FILE
description: Type of Document
permissions:
type: array
Expand All @@ -2823,9 +2822,6 @@
- READ
- WRITE
- DELETE
name:
type: string
description: Name of Share
siteId:
type: string
description: Site Identifier
Expand Down Expand Up @@ -3233,7 +3229,7 @@
message:
type: string
description: API Response message
documentId:
shareKey:
type: string
description: Share Identifier
DeleteFolderResponse:
Expand Down
24 changes: 9 additions & 15 deletions docs/openapi/openapi-jwt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1465,15 +1465,15 @@
- ApiAuthorization: []
x-amazon-apigateway-integration:
$ref: '#/components/x-amazon-apigateway-integrations/lambdaApi201'
/shares/folders/{documentId}:
/shares/folders/{shareKey}:
patch:
operationId: UpdateFolderShare
description: Updates a folder share; ONLY available with FormKiQ Enterprise
tags:
- Document Shares
parameters:
- $ref: '#/components/parameters/siteIdParam'
- $ref: '#/components/parameters/documentIdParam'
- $ref: '#/components/parameters/shareKey'
requestBody:
required: true
content:
Expand Down Expand Up @@ -1504,14 +1504,14 @@
- ApiAuthorization: []
x-amazon-apigateway-integration:
$ref: '#/components/x-amazon-apigateway-integrations/lambdaApi200'
/shares/{documentId}:
/shares/{shareKey}:
delete:
operationId: DeleteShare
description: Delete a specific document share; ONLY available with FormKiQ Enterprise
tags:
- Document Shares
parameters:
- $ref: '#/components/parameters/documentIdParam'
- $ref: '#/components/parameters/shareKey'
responses:
"200":
description: 200 OK
Expand Down Expand Up @@ -2805,14 +2805,13 @@
UserShare:
type: object
properties:
documentId:
shareKey:
type: string
description: Document/Folder Identifier
description: Share Identifier
type:
type: string
enum:
- FOLDER
- FILE
description: Type of Document
permissions:
type: array
Expand All @@ -2823,9 +2822,6 @@
- READ
- WRITE
- DELETE
name:
type: string
description: Name of Share
siteId:
type: string
description: Site Identifier
Expand Down Expand Up @@ -3233,7 +3229,7 @@
message:
type: string
description: API Response message
documentId:
shareKey:
type: string
description: Share Identifier
DeleteFolderResponse:
Expand Down Expand Up @@ -4386,10 +4382,8 @@
description: Message response
securitySchemes:
ApiAuthorization:
type: http
scheme: bearer
bearerFormat: JWT
description: JWT authentication
type: oauth2
flows: {}
x-amazon-apigateway-authorizer:
type: jwt
jwtConfiguration:
Expand Down
18 changes: 7 additions & 11 deletions docs/openapi/openapi-key.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1465,15 +1465,15 @@
- ApiAuthorization: []
x-amazon-apigateway-integration:
$ref: '#/components/x-amazon-apigateway-integrations/lambdaApi201'
/shares/folders/{documentId}:
/shares/folders/{shareKey}:
patch:
operationId: UpdateFolderShare
description: Updates a folder share; ONLY available with FormKiQ Enterprise
tags:
- Document Shares
parameters:
- $ref: '#/components/parameters/siteIdParam'
- $ref: '#/components/parameters/documentIdParam'
- $ref: '#/components/parameters/shareKey'
requestBody:
required: true
content:
Expand Down Expand Up @@ -1504,14 +1504,14 @@
- ApiAuthorization: []
x-amazon-apigateway-integration:
$ref: '#/components/x-amazon-apigateway-integrations/lambdaApi200'
/shares/{documentId}:
/shares/{shareKey}:
delete:
operationId: DeleteShare
description: Delete a specific document share; ONLY available with FormKiQ Enterprise
tags:
- Document Shares
parameters:
- $ref: '#/components/parameters/documentIdParam'
- $ref: '#/components/parameters/shareKey'
responses:
"200":
description: 200 OK
Expand Down Expand Up @@ -2805,14 +2805,13 @@
UserShare:
type: object
properties:
documentId:
shareKey:
type: string
description: Document/Folder Identifier
description: Share Identifier
type:
type: string
enum:
- FOLDER
- FILE
description: Type of Document
permissions:
type: array
Expand All @@ -2823,9 +2822,6 @@
- READ
- WRITE
- DELETE
name:
type: string
description: Name of Share
siteId:
type: string
description: Site Identifier
Expand Down Expand Up @@ -3233,7 +3229,7 @@
message:
type: string
description: API Response message
documentId:
shareKey:
type: string
description: Share Identifier
DeleteFolderResponse:
Expand Down
Binary file modified dynamodb-documents/documentsTableSchema.numbers
Binary file not shown.
18 changes: 7 additions & 11 deletions lambda-api/src/main/resources/cloudformation/api-apikey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1467,15 +1467,15 @@ Resources:
- ApiAuthorization: []
x-amazon-apigateway-integration:
$ref: "#/components/x-amazon-apigateway-integrations/lambdaApi201"
/shares/folders/{documentId}:
/shares/folders/{shareKey}:
patch:
operationId: UpdateFolderShare
description: Updates a folder share; ONLY available with FormKiQ Enterprise
tags:
- Document Shares
parameters:
- $ref: '#/components/parameters/siteIdParam'
- $ref: '#/components/parameters/documentIdParam'
- $ref: '#/components/parameters/shareKey'
requestBody:
required: true
content:
Expand Down Expand Up @@ -1506,14 +1506,14 @@ Resources:
- ApiAuthorization: []
x-amazon-apigateway-integration:
$ref: "#/components/x-amazon-apigateway-integrations/lambdaApi200"
/shares/{documentId}:
/shares/{shareKey}:
delete:
operationId: DeleteShare
description: Delete a specific document share; ONLY available with FormKiQ Enterprise
tags:
- Document Shares
parameters:
- $ref: '#/components/parameters/documentIdParam'
- $ref: '#/components/parameters/shareKey'
responses:
'200':
description: 200 OK
Expand Down Expand Up @@ -2807,14 +2807,13 @@ Resources:
UserShare:
type: "object"
properties:
documentId:
shareKey:
type: "string"
description: "Document/Folder Identifier"
description: "Share Identifier"
type:
type: "string"
enum:
- FOLDER
- FILE
description: "Type of Document"
permissions:
type: "array"
Expand All @@ -2825,9 +2824,6 @@ Resources:
- READ
- WRITE
- DELETE
name:
type: "string"
description: "Name of Share"
siteId:
type: "string"
description: "Site Identifier"
Expand Down Expand Up @@ -3235,7 +3231,7 @@ Resources:
message:
type: "string"
description: "API Response message"
documentId:
shareKey:
type: "string"
description: "Share Identifier"
DeleteFolderResponse:
Expand Down
18 changes: 7 additions & 11 deletions lambda-api/src/main/resources/cloudformation/api-iam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1467,15 +1467,15 @@ Resources:
- ApiAuthorization: []
x-amazon-apigateway-integration:
$ref: "#/components/x-amazon-apigateway-integrations/lambdaApi201"
/shares/folders/{documentId}:
/shares/folders/{shareKey}:
patch:
operationId: UpdateFolderShare
description: Updates a folder share; ONLY available with FormKiQ Enterprise
tags:
- Document Shares
parameters:
- $ref: '#/components/parameters/siteIdParam'
- $ref: '#/components/parameters/documentIdParam'
- $ref: '#/components/parameters/shareKey'
requestBody:
required: true
content:
Expand Down Expand Up @@ -1506,14 +1506,14 @@ Resources:
- ApiAuthorization: []
x-amazon-apigateway-integration:
$ref: "#/components/x-amazon-apigateway-integrations/lambdaApi200"
/shares/{documentId}:
/shares/{shareKey}:
delete:
operationId: DeleteShare
description: Delete a specific document share; ONLY available with FormKiQ Enterprise
tags:
- Document Shares
parameters:
- $ref: '#/components/parameters/documentIdParam'
- $ref: '#/components/parameters/shareKey'
responses:
'200':
description: 200 OK
Expand Down Expand Up @@ -2807,14 +2807,13 @@ Resources:
UserShare:
type: "object"
properties:
documentId:
shareKey:
type: "string"
description: "Document/Folder Identifier"
description: "Share Identifier"
type:
type: "string"
enum:
- FOLDER
- FILE
description: "Type of Document"
permissions:
type: "array"
Expand All @@ -2825,9 +2824,6 @@ Resources:
- READ
- WRITE
- DELETE
name:
type: "string"
description: "Name of Share"
siteId:
type: "string"
description: "Site Identifier"
Expand Down Expand Up @@ -3235,7 +3231,7 @@ Resources:
message:
type: "string"
description: "API Response message"
documentId:
shareKey:
type: "string"
description: "Share Identifier"
DeleteFolderResponse:
Expand Down
Loading

0 comments on commit 60eb79e

Please sign in to comment.