From 2fecccad67f953f142fdaa14f67c159f09e5535b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Illouz?= Date: Fri, 1 Jun 2018 18:18:32 +0200 Subject: [PATCH] Fix wrong HTTP verb HTTP `POST` should be used to create a product (like specified in the code example). --- doc_source/test-sam-cli.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_source/test-sam-cli.md b/doc_source/test-sam-cli.md index 8f7da42e..11378cec 100644 --- a/doc_source/test-sam-cli.md +++ b/doc_source/test-sam-cli.md @@ -207,7 +207,7 @@ Resources: ``` The preceding example configures the following RESTful API endpoints: -+ Create a new product with a `PUT` request to /products\. ++ Create a new product with a `POST` request to /products\. + List all products with a `GET` request to /products\. + Read, update, or delete a product with `GET`, `PUT` or `DELETE` request to /products/\{product\}\. @@ -353,4 +353,4 @@ For compiled languages or projects requiring complex packaging support, we recom Unlike Node\.js, \.NET or Java, Python requires you to enable remote debugging in your Lambda function code\. If you enable debugging \(using the `--debug-port` or `-d` options mentioned above\) for a function that uses one of the Python runtimes \(2\.7 or 3\.6\), SAM CLI maps through that port from your host machine to the Lambda container\. To enable remote debugging, use a Python package such as [remote\-pdb](https://pypi.python.org/pypi/remote-pdb)\. **Important** -When configuring the host, the debugger listens in on your code, so make sure to use `0.0.0.0` and not `127.0.0.1`\. \ No newline at end of file +When configuring the host, the debugger listens in on your code, so make sure to use `0.0.0.0` and not `127.0.0.1`\.