Load Marvel Comics API data into MongoDB
Signup on Marvel Developer Portal for API key
docker run -d --name mongo -p 27017:27017 mongo
MARVEL_API_PRIVATE_KEY="private_key" MARVE_API_PUBLIC_KEY="public_key" MONGODB_URI="mongodb://localhost:27017/marvel-comics" go run main.go
-
limitandoffsetnot as expectedChange on any of them will get a totally different response, at least for
/v1/public/comics. -
Count not always identical
availablefor list of comics/events/series/stories returned from/v1/public/characters/{characterId}andtotalreturned from/v1/public/characters/{characterId}/{comics/events/series/stories} -
Some field types don't follow api definition (fixed with custom json unmarshalling)
-
comic 39237 with
diamondCodeshould bestringbut returnsnumber -
comic 70668 with
diamondCodeshould bestringbut returnsnumber -
comic 27399 with
diamondCodeshould bestringbut returnsnumber -
comic 1405 with
isbnshould bestringbut returnsnumber -
story 30688 with
titleshould bestringbut returnsnumber -
story 44568 with
titleshould bestringbut returnsnumber -
creator 9551 with
suffixshould bestringbut returnsnumber -
creator 10669 with
lastNameshould bestringbut returnsnumber -
and more ...
-