From c5a82a404a9d8ae8fdad1240e0bbdb867eac4ace Mon Sep 17 00:00:00 2001 From: Darkio14 Date: Thu, 30 Aug 2018 17:58:40 -0500 Subject: [PATCH] Update Method Type POST to PUT Error when use method POST { "timestamp" : 1535669078704, "status" : 405, "error" : "Method Not Allowed", "message" : "HTTP 405 Method Not Allowed", "path" : "/api/products/5b8870e8f6ce10194847c7a3" } --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 999990b..f352ab3 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ curl -X GET \ ### Update a product ```bash -curl -X POST \ +curl -X PUT \ 'http://localhost:8765/api/products/{product-id}' \ -H 'Content-Type: application/json' \ -d '{ @@ -202,4 +202,4 @@ curl -X DELETE \ Alternatively to [curl][], you can use [Postman][] to target the REST API. Check the Postman [collection](misc/microservices-springboot.postman_collection.json) and the [environment variables](misc/microservices-springboot.postman_environment.json) as well. [Postman]: https://www.getpostman.com/ -[curl]: https://curl.haxx.se/ \ No newline at end of file +[curl]: https://curl.haxx.se/