Updating entries
PUT method
We have to pass in all the data, not only the fields that have to be updated
First we need to create the Path Operation
Note: Since we're receiving data from the front end, we want to make sure that the data is sent in a predetermined model
We could make another class with the required format
But since the data we expect is the exact same, we will use the
Post
class
Below we have the current post:
If we want to update we will have to send a PUT request with all the fields, even if we're only updating the title
Last updated