Skip to content

Commit 2feccca

Browse files
authored
Fix wrong HTTP verb
HTTP `POST` should be used to create a product (like specified in the code example).
1 parent ff2f1da commit 2feccca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc_source/test-sam-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Resources:
207207
```
208208

209209
The preceding example configures the following RESTful API endpoints:
210-
+ Create a new product with a `PUT` request to /products\.
210+
+ Create a new product with a `POST` request to /products\.
211211
+ List all products with a `GET` request to /products\.
212212
+ Read, update, or delete a product with `GET`, `PUT` or `DELETE` request to /products/\{product\}\.
213213

@@ -353,4 +353,4 @@ For compiled languages or projects requiring complex packaging support, we recom
353353
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)\.
354354

355355
**Important**
356-
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`\.
356+
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`\.

0 commit comments

Comments
 (0)