AugustoMarcelo / mcuapi

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

Characters model #13

Open AugustoMarcelo opened 2 years ago

AugustoMarcelo commented 2 years ago

Hey, everyone!

I'm working on the characters model and I'm thinking about what data would be good to have. This is the minimum that all characters will have:

KristofKekesi commented 2 years ago

I think it would be better to have two types of films and two types of tv shows.

In related should be of course the related, except the own films and tv series. That would be under own.

So for Captain America related films would be for example the Avengers films, and for own films the Captain America trilogy.

AugustoMarcelo commented 2 years ago

@KristofKekesi It's a good point. I'll use an attribute to differentiate the data.

AugustoMarcelo commented 2 years ago

Here is an initial example of the character modeled. The TV Shows will also be added.

{
  "id": 1,
  "name": "Tony Stark",
  "aka": "Iron Man",
  "bio": "Genius inventor Tony Stark continued his father Howard Stark's weaponry business after his parents' untimely deaths and flew it to even greater heights of innovation. While in Afghanistan to demonstrate a new missile for the U.S. military, Stark's convoy came under fire by a terrorist group known as the Ten Rings and he was severely wounded. Taken prisoner by the group, Stark awoke in their headquarters to learn that shrapnel near his heart had nearly cost him his life, but swift action by scientist and fellow prisoner Ho Yinsen—who had inserted a powerful electromagnet in Stark's chest—would prolong it temporarily.",
  "posters": [
    "https://terrigen-cdn-dev.marvel.com/content/prod/1x/002irm_ons_crd_02.jpg",
    "https://terrigen-cdn-dev.marvel.com/content/prod/1x/002irm_ons_crd_03.jpg"
  ],
  "movies": [
    {
      "movie": {
        "title": "Iron Man",
        "id": 1,
        "poster": "https://raw.githubusercontent.com/AugustoMarcelo/mcuapi/master/covers/iron-man.jpg"
      },
      "own_movie": true,
      "appearance": "major appearance"
    },
    {
      "movie": {
        "title": "The Incredible Hulk",
        "id": 2,
        "poster": "https://raw.githubusercontent.com/AugustoMarcelo/mcuapi/master/covers/hulk.jpg"
      },
      "own_movie": false,
      "appearance": "post-credits"
    }
  ]
}
AbdirayimovS commented 7 months ago

Hi @AugustoMarcelo, I hope you are doing well!

It seems the API is not in working mode. I can not do requests. I need Marvel characters dataset. How can I get it? Looking forward for your reply!

Sincerely,

AugustoMarcelo commented 7 months ago

Hi, @AbdirayimovS

Sorry for the delay, I've been a little busy in the last weeks. The API is working for me. Not sure what type of error are you getting, but feel free to share with me and I can help you. Regarding the characters endpoint, it's not ready. I'm not sure when I'll be able to get it live, but it shouldn't take so much. It's been a while since I worked in the code, but I had a great progress.