|
@@ -193,7 +193,7 @@ public ResponseEntity<?> getPoll(@PathVariable Long pollId) {
|
193
|
193
|
* The code snippet below enables us to update a poll.
|
194
|
194
|
|
195
|
195
|
```java
|
196
|
|
-RequestMapping(value="/polls/{pollId}", method=RequestMethod.PUT)
|
|
196
|
+@RequestMapping(value="/polls/{pollId}", method=RequestMethod.PUT)
|
197
|
197
|
public ResponseEntity<?> updatePoll(@RequestBody Poll poll, @PathVariable Long pollId) {
|
198
|
198
|
// Save the entity
|
199
|
199
|
Poll p = pollRepository.save(poll);
|