소스 검색

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
 ```