omdbapi / OMDb-API

The Open Movie Database Bug Tracking
421 stars 21 forks source link

Is it possible to use other methods in this API? #273

Open gutobr9 opened 2 years ago

gutobr9 commented 2 years ago

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 2 years ago

In this API case, you can only GET data.

Warrenfox002 commented 2 years ago

is there possible to set number of records to show than just 10 on the search prams

brady-aiello commented 2 years ago

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.