瀏覽代碼

Update README.md

Git-Leon 7 年之前
父節點
當前提交
7592772708
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      README.md

+ 2
- 2
README.md 查看文件

@@ -233,7 +233,7 @@ public ResponseEntity<?> deletePoll(@PathVariable Long pollId) {
233 233
 -
234 234
 # Part 3.1.8 - Test
235 235
 * Restart the QuickPoll application.
236
-* Use Postman to execute a `PUT` to `http://localhost:8080/polls/1` whose request body is the `JSON` file below.
236
+* Use Postman to execute a `PUT` to `http://localhost:8080/polls/1` whose request body is the `JSON` object below.
237 237
 * 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 238
 
239 239
 ```JSON
@@ -266,7 +266,7 @@ public class VoteController {
266 266
     public ResponseEntity<?> createVote(@PathVariable Long pollId, @RequestBody Vote
267 267
             vote) {
268 268
         vote = voteRepository.save(vote);
269
-// Set the headers for the newly created resource
269
+        // Set the headers for the newly created resource
270 270
         HttpHeaders responseHeaders = new HttpHeaders();
271 271
         responseHeaders.setLocation(ServletUriComponentsBuilder.
272 272
                 fromCurrentRequest().path("/{id}").buildAndExpand(vote.getId()).toUri());