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 eafeee1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 154 deletions.
143 changes: 0 additions & 143 deletions Makefile

This file was deleted.

24 changes: 13 additions & 11 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,14 +319,16 @@ paths:
Fn::Sub: |
{
"TableName": "${DdbTable}",
"KeyConditionExpression": "pk = :pk",
"KeyConditionExpression": "#pk = :pk",
"ExpressionAttributeValues": {
":pk": {
"S": "$input.params('namespace')/$input.params('kind')"
}
":pk": { "S": "$input.params('namespace')/$input.params('kind')" },
":itemType": { "S": "entity" }
},
"ExpressionAttributeNames": {
"#pk": "pk",
"#itemType": "itemType"
},
"Limit": "$input.params('limit')",
"Offset": "$input.params('offset')"
"FilterExpression": "#itemType = :itemType"
}
responses:
"2\\d{2}":
Expand Down Expand Up @@ -395,7 +397,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 +410,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 All @@ -420,7 +422,7 @@ paths:
statusCode: 200
responseTemplates:
"application/json": |
$input.json('$')
$input.json('$.Item')
"4\\d{2}":
statusCode: 400
responseTemplates:
Expand Down

0 comments on commit eafeee1

Please sign in to comment.