Skip to content

Instantly share code, notes, and snippets.

@mollyporph
Created November 27, 2015 12:57
Show Gist options
  • Save mollyporph/befb869cb6967c66e6d6 to your computer and use it in GitHub Desktop.
Save mollyporph/befb869cb6967c66e6d6 to your computer and use it in GitHub Desktop.
{
"lambda": {
"envVars": [],
"deploy": true,
"package": {
"optimize": {
"builder": "browserify",
"minify": true,
"ignore": [],
"exclude": [
"aws-sdk"
],
"includePaths": []
},
"excludePatterns": []
},
"cloudFormation": {
"Description": "",
"Handler": "aws_modules/image/list/handler.handler",
"MemorySize": 128,
"Runtime": "nodejs",
"Timeout": 6
}
},
"apiGateway": {
"deploy": false,
"cloudFormation": {
"Type": "AWS",
"Path": "image/list",
"Method": "GET",
"AuthorizationType": "none",
"ApiKeyRequired": false,
"RequestTemplates": {},
"RequestParameters": {},
"Responses": {
"400": {
"statusCode": "400"
},
"default": {
"statusCode": "200",
"responseParameters": {},
"responseModels": {},
"responseTemplates": {
"application/json": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"fromUserName": {
"type": "string"
},
"imageUrl": {
"type": "string"
},
"url": {
"type": "string"
},
"thumbnailUrl": {
"type": "string"
},
"nsfw": {
"type": "Boolean"
},
"dateTimeUploaded": {
"type": "string"
},
"dateUploaded": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment