Bläddra i källkod

Update README.md

Git-Leon 7 år sedan
förälder
incheckning
7592772708
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      README.md

+ 2
- 2
README.md Visa fil

@@ -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());