Is it possible to use other methods in this API?
gutobr9 opened this issue · 3 comments
gutobr9 commented
I'm studying Rest API, but I haven't seen documentation examples to do a POST, PUT, PATCH or DELETE.
In general we only consume API data or would there be any so I can test the other methods?
agustinl commented
In this API case, you can only GET
data.
Warrenfox002 commented
is there possible to set number of records to show than just 10 on the search prams
brady-aiello commented
The other methods don't make sense in the context of the API.
Users should not be able to do this:
POST
: Add a movie
PUT
: Change multiple fields in a movie, like year and title
PATCH
: Change 1 field, like just the genre of a movie
DELETE
: Remove a movie from OMDB
If you want to practice manipulating data through REST, you'll need to set up your own server, which could just be localhost
.