ソースを参照

fix section 3.1.8

David Ginzberg 7 年 前
コミット
0f812f4619
共有1 個のファイルを変更した5 個の追加5 個の削除を含む
  1. 5
    5
      README.md

+ 5
- 5
README.md ファイルの表示

234
 -
234
 -
235
 ### Part 3.1.8 - Test
235
 ### Part 3.1.8 - Test
236
 * Restart the QuickPoll application.
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
 * 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.
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
 ```JSON
240
 ```JSON
242
     "id": 1,
242
     "id": 1,
243
         "question": "What's the best netflix original?",
243
         "question": "What's the best netflix original?",
244
         "options": [
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
 ```