Skip to content

Commit

Permalink
No need for this file anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
tmclaugh committed Oct 19, 2024
1 parent 2b892b3 commit 871712d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 151 deletions.
143 changes: 0 additions & 143 deletions Makefile

This file was deleted.

20 changes: 12 additions & 8 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ paths:
"PutRequest": {
"Item": {
"pk": {
"S": "$namespace/$kind/$name"
"S": "$namespace/$kind"
},
"sk": {
"S": "$namespace/$kind/$name"
Expand Down Expand Up @@ -308,7 +308,7 @@ paths:
- Fn::Sub: https://${Hostname}/catalog.read
x-amazon-apigateway-integration:
type: AWS
httpMethod: GET
httpMethod: POST
uri:
Fn::Sub: "arn:aws:apigateway:${AWS::Region}:dynamodb:action/Query"
credentials:
Expand All @@ -319,12 +319,16 @@ paths:
Fn::Sub: |
{
"TableName": "${DdbTable}",
"KeyConditionExpression": "pk = :pk",
"KeyConditionExpression": "#pk = :pk",
"ExpressionAttributeValues": {
":pk": {
"S": "$input.params('namespace')/$input.params('kind')"
}
":pk": "$input.params('namespace')/$input.params('kind')"
":entityType": "entity"
},
"ExpressionAttributeNames": {
"#pk": "pk",
"#itemType": "itemType"
},
"FilterExpression": "#itemType = :entityType"
"Limit": "$input.params('limit')",
"Offset": "$input.params('offset')"
}
Expand Down Expand Up @@ -395,7 +399,7 @@ paths:
- Fn::Sub: https://${Hostname}/catalog.read
x-amazon-apigateway-integration:
type: AWS
httpMethod: GET
httpMethod: POST
uri:
Fn::Sub: "arn:aws:apigateway:${AWS::Region}:dynamodb:action/GetItem"
credentials:
Expand All @@ -408,7 +412,7 @@ paths:
"TableName": "${DdbTable}",
"Key": {
"pk": {
"S": "$input.params('namespace')/$input.params('kind')/$input.params('name')"
"S": "$input.params('namespace')/$input.params('kind')"
},
"sk": {
"S": "$input.params('namespace')/$input.params('kind')/$input.params('name')"
Expand Down

0 comments on commit 871712d

Please sign in to comment.