anthonyhastings / avengers-web-application

An example web application for teaching purposes.
MIT License
5 stars 1 forks source link

Marvel API? #3

Open anthonyhastings opened 9 years ago

anthonyhastings commented 9 years ago

https://developer.marvel.com/

anthonyhastings commented 9 years ago

Unfortunately there's no single endpoint that will return us the Avengers we'd like. I've identified their resource ID's through the API though, in-case we wanted to make six individual requests.

1009220: Captain America
1009368: Iron Man
1009664: Thor
1009351: Hulk
1009338: Hawkeye
1009189: Black Widow

We'd need to weigh up the teach value in doing it with six individual calls, compared to using our mock api that is showcasing a collection endpoint fetch, and then a further fetch per model. I think there's more merit in using our mock api as I can see this example application expanding out to include villains and also the ability to filter your current results set (for teaching purposes), all of which would be easier achieved with our own API structure.

Thoughts @njmcode ?