Skip to content

Rinesh-Bharath/nodejs-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-product

Input

{
	"action": "create_product",
	"body": {
		"input": [{
			"user_id" : "070174fc-6aad-46fd-947b-ec9c84d9de4d",
			"name": "Chicken nugget",
			"price": 140,
			"color" : "Brown"
		}]
	}
}
{
	"action": "read_product",
	"body": {
		"input": {
			"product_id": "85034f29-8324-48b9-b617-5ca408e03d9f"
		}
	}
}
{
	"action": "update_product",
	"body": {
		"input": {
			"product_id": "85034f29-8324-48b9-b617-5ca408e03d9f",
			"price": 150
		}
	}
}
{
	"action": "delete_product",
	"body": {
		"input": {
			"product_id": "102cf512-ef38-44f9-b249-743bc93dc601"
		}
	}
}
```

## run instructions

npm install
npm run mock

About

Basic Boilerplate code for setting up AWS Lambda

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published