Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The changes to move to SAM broke the marketplace integration. This commit should fix them by making the marketplace SNS topic available in the config object. Also includes some housecleaning (removing unecessary bits of package.json, cleaning up README markdown syntax).
- Loading branch information
1 parent
92539b4
commit 406f84d
Showing
6 changed files
with
626 additions
and
8 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
230 changes: 230 additions & 0 deletions
230
lambdas/backend/catalog/PestStore-prod-swagger-apigateway.json
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,230 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"version": "2018-09-21T22:32:04Z", | ||
"title": "PestStore" | ||
}, | ||
"host": "9qfvnvfyz9.execute-api.us-west-2.amazonaws.com", | ||
"basePath": "/prod", | ||
"schemes": [ | ||
"https" | ||
], | ||
"paths": { | ||
"/arachnids": { | ||
"get": { | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "200 response", | ||
"schema": { | ||
"$ref": "#/definitions/Empty" | ||
} | ||
} | ||
}, | ||
"x-amazon-apigateway-integration": { | ||
"responses": { | ||
"default": { | ||
"statusCode": "200" | ||
} | ||
}, | ||
"requestTemplates": { | ||
"application/json": "{\"statusCode\": 200}" | ||
}, | ||
"passthroughBehavior": "when_no_match", | ||
"type": "mock" | ||
} | ||
} | ||
}, | ||
"/bugs/insects": { | ||
"delete": { | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "200 response", | ||
"schema": { | ||
"$ref": "#/definitions/Empty" | ||
} | ||
} | ||
}, | ||
"x-amazon-apigateway-integration": { | ||
"responses": { | ||
"default": { | ||
"statusCode": "200" | ||
} | ||
}, | ||
"requestTemplates": { | ||
"application/json": "{\"statusCode\": 200}" | ||
}, | ||
"passthroughBehavior": "when_no_match", | ||
"type": "mock" | ||
} | ||
} | ||
}, | ||
"/slitherers/snakes": { | ||
"get": { | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "200 response", | ||
"schema": { | ||
"$ref": "#/definitions/Empty" | ||
} | ||
} | ||
}, | ||
"x-amazon-apigateway-integration": { | ||
"responses": { | ||
"default": { | ||
"statusCode": "200" | ||
} | ||
}, | ||
"requestTemplates": { | ||
"application/json": "{\"statusCode\": 200}" | ||
}, | ||
"passthroughBehavior": "when_no_match", | ||
"type": "mock" | ||
} | ||
}, | ||
"post": { | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "200 response", | ||
"schema": { | ||
"$ref": "#/definitions/Empty" | ||
} | ||
} | ||
}, | ||
"x-amazon-apigateway-integration": { | ||
"responses": { | ||
"default": { | ||
"statusCode": "200" | ||
} | ||
}, | ||
"requestTemplates": { | ||
"application/json": "{\"statusCode\": 200}" | ||
}, | ||
"passthroughBehavior": "when_no_match", | ||
"type": "mock" | ||
} | ||
} | ||
}, | ||
"/slitherers/worms": { | ||
"get": { | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "200 response", | ||
"schema": { | ||
"$ref": "#/definitions/Empty" | ||
} | ||
} | ||
}, | ||
"x-amazon-apigateway-integration": { | ||
"responses": { | ||
"default": { | ||
"statusCode": "200" | ||
} | ||
}, | ||
"requestTemplates": { | ||
"application/json": "{\"statusCode\": 200}" | ||
}, | ||
"passthroughBehavior": "when_no_match", | ||
"type": "mock" | ||
} | ||
}, | ||
"head": { | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "200 response", | ||
"schema": { | ||
"$ref": "#/definitions/Empty" | ||
} | ||
} | ||
}, | ||
"x-amazon-apigateway-integration": { | ||
"responses": { | ||
"default": { | ||
"statusCode": "200" | ||
} | ||
}, | ||
"requestTemplates": { | ||
"application/json": "{\"statusCode\": 200}" | ||
}, | ||
"passthroughBehavior": "when_no_match", | ||
"type": "mock" | ||
} | ||
} | ||
}, | ||
"/{proxy+}": { | ||
"x-amazon-apigateway-any-method": { | ||
"produces": [ | ||
"application/json" | ||
], | ||
"parameters": [ | ||
{ | ||
"name": "proxy", | ||
"in": "path", | ||
"required": true, | ||
"type": "string" | ||
} | ||
], | ||
"responses": {}, | ||
"x-amazon-apigateway-integration": { | ||
"uri": "https://google.com/{proxy}", | ||
"responses": { | ||
"default": { | ||
"statusCode": "200" | ||
} | ||
}, | ||
"requestParameters": { | ||
"integration.request.path.proxy": "method.request.path.proxy" | ||
}, | ||
"passthroughBehavior": "when_no_match", | ||
"httpMethod": "ANY", | ||
"cacheNamespace": "t35v6l", | ||
"cacheKeyParameters": [ | ||
"method.request.path.proxy" | ||
], | ||
"type": "http_proxy" | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"Empty": { | ||
"type": "object", | ||
"title": "Empty Schema" | ||
} | ||
} | ||
} |
Oops, something went wrong.