AugustoMarcelo / mcuapi

🦸 Marvel Cinematic Universe API
https://mcuapi.herokuapp.com/docs
67 stars 3 forks source link

Search endpoint #9

Closed iZNunev closed 3 years ago

iZNunev commented 3 years ago

Hey, would it be possible to get a capability to search based on Phase and/or Saga? Or filter the results based on those?

KristofKekesi commented 3 years ago

Hi!

You can filter by adding the ?filter=saga=Infinity ending. For the phases it is ?filter=phase=1.

So the URLs should look like this:

https://mcuapi.herokuapp.com/api/v1/movies?filter=phase=1
https://mcuapi.herokuapp.com/api/v1/movies?filter=saga=Infinity

You can view the Dev's words on this at #8.

iZNunev commented 3 years ago

Awesome! Thanks a lot :)