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
-
limit
andoffset
not as expectedChange on any of them will get a totally different response, at least for
/v1/public/comics
. -
Count not always identical
available
for list of comics/events/series/stories returned from/v1/public/characters/{characterId}
andtotal
returned 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
diamondCode
should bestring
but returnsnumber
-
comic 70668 with
diamondCode
should bestring
but returnsnumber
-
comic 27399 with
diamondCode
should bestring
but returnsnumber
-
comic 1405 with
isbn
should bestring
but returnsnumber
-
story 30688 with
title
should bestring
but returnsnumber
-
story 44568 with
title
should bestring
but returnsnumber
-
creator 9551 with
suffix
should bestring
but returnsnumber
-
creator 10669 with
lastName
should bestring
but returnsnumber
-
and more ...
-