Browse Source

fix section 3.1.8

David Ginzberg 7 years ago
parent
commit
0f812f4619
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      README.md

+ 5
- 5
README.md View File

@@ -234,7 +234,7 @@ public ResponseEntity<?> deletePoll(@PathVariable Long pollId) {
234 234
 -
235 235
 ### Part 3.1.8 - Test
236 236
 * Restart the QuickPoll application.
237
-* Use Postman to execute a `PUT` to `http://localhost:8080/polls/1` whose request body is the `JSON` object below.
237
+* Use Postman to execute a `POST` to `http://localhost:8080/polls/1` whose request body is the `JSON` object below.
238 238
 * You can modify the request body in Postman by navigating to the `Body` tab, selecting the `raw` radio button, and selecting the `JSON` option from the text format dropdown.
239 239
 
240 240
 ```JSON
@@ -242,10 +242,10 @@ public ResponseEntity<?> deletePoll(@PathVariable Long pollId) {
242 242
     "id": 1,
243 243
         "question": "What's the best netflix original?",
244 244
         "options": [
245
-	    { "id": 1, "value": "Black Mirror" },
246
-	    { "id": 2, "value": "Stranger Things" },
247
-	    { "id": 3, "value": "Orange is the New Black"},
248
-	    { "id": 4, "value": "The Get Down" }
245
+	    { "value": "Black Mirror" },
246
+	    { "value": "Stranger Things" },
247
+	    { "value": "Orange is the New Black"},
248
+	    { "value": "The Get Down" }
249 249
 	]
250 250
 }
251 251
 ```