AugustoMarcelo / mcuapi

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

Suggestion: Add last updated data in the API #14

Open Davianlols6 opened 2 years ago

Davianlols6 commented 2 years ago

Hi! It would be nice to have a last updated data point in the API preferably for each TV Shows and Movies.

Also, thank you so much for collecting all the data about all Marvel's TV shows and movies into an API!

AugustoMarcelo commented 2 years ago

Hi, @Davianlols6

Thanks for the suggestion! Could you provide an example of how you would expect to see this field?

Davianlols6 commented 2 years ago

Hi! So the last updated field will be in the form of a DateTime string. For example:

{
  "id": 6,
  "title": "Moon Knight",
  "release_date": "2022-03-30",
  "last_aired_date": "2022-05-04",
  "number_seasons": 1,
  "number_episodes": 6,
  "overview": "Moon Knight follows Steven Grant, a mild-mannered gift-shop employee, who becomes plagued with blackouts and memories of another life. Steven discovers he has dissociative identity disorder and shares a body with mercenary Marc Spector. As Steven/Marc's enemies converge upon them, they must navigate their complex identities while thrust into a deadly mystery among the powerful gods of Egypt.",
  "cover_url": "https://res.cloudinary.com/augustomarcelo/image/upload/v1647469845/mcuapi/gallery/TV%20Shows/Moon%20Knight/Posters/3.jpg",
  "trailer_url": "https://youtu.be/x7Krla_UxRg",
  "directed_by": "Mohamed Diab",
  "phase": 4,
  "saga": null,
  "imdb_id": "tt10234724",
  "last_updated": "2022-05-20T06:29:38Z"
}
AugustoMarcelo commented 2 years ago

Hi, @Davianlols6. I see. I'll put your suggestion on my list. It's an easy implementation. Thanks!