Posts

Showing posts from January, 2018

DynamoDB - AWS Serverless API

Here is some useful resources about AWS DynamoDB Overview over DynamoDB:  https://aws.amazon.com/dynamodb/ Developer Doc:  http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Introduction.html Pricing:  https://aws.amazon.com/dynamodb/pricing/

Using Models - AWS Serverless API

Method Request - Section  A Model can be used as a request body. And we can validate it by setting "Request Validator" = "Validate Body". This will stop continuing request if the body does not match with the validation model. Integration Request - Section  Here we can use a Model as Body Mapping Template. In some situations we do not need to pass all data from request to back end (Lambda function). Then we can use mapping templates to pass specific data to the back end. Example: This is our request validation model {    "name" :"Suresh"   "salary" : "32" } When only "salary" is need to pass to lambda function the mapping template may be: #set($inputRoot = $input.path('$')) {   "salary" : $inputRoot.salary } Integration Response - Section  Here we can use a Model as Body Mapping Template.  In some situations we do not need to pass all data from back end to...

Understanding JSON Schemas - AWS Serverless API

AWS API Models(classes) are defined using JSON schema. JSON schema org:  http://json-schema.org/ Other best place is:  https://spacetelescope.github.io/understanding-json-schema/