From c1def6508b957ffdb67a675015c945747af036cd Mon Sep 17 00:00:00 2001 From: K Siva Prasad Reddy Date: Fri, 3 Nov 2023 06:53:58 +0530 Subject: [PATCH] Fix HTTP Method --- step-3-local-development-environment.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/step-3-local-development-environment.md b/step-3-local-development-environment.md index 183658b..8fbe84c 100644 --- a/step-3-local-development-environment.md +++ b/step-3-local-development-environment.md @@ -169,7 +169,7 @@ Now, you can invoke the APIs using CURL or Postman or any of your favourite HTTP ### Create a product ```shell -curl -v -X "GET" 'http://localhost:8080/api/products' \ +curl -v -X "POST" 'http://localhost:8080/api/products' \ --header 'Content-Type: application/json' \ --data '{ "code": "P201", @@ -337,7 +337,7 @@ So, when we make a call to `inventory-service` from our application, it will cal Now restart the `TestApplication` and invoke the `GET /api/products/P101` API again. ```shell -curl --location 'http://localhost:8080/api/products/P101' +curl -X "GET" 'http://localhost:8080/api/products/P101' ``` You should see the response similar to the following: