Skip to content

loivis/marvel-comics-api-data-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcapi-loader

Load Marvel Comics API data into MongoDB

Instructions

Signup on Marvel Developer Portal for API key

Get ready MongoDB

docker run -d --name mongo -p 27017:27017 mongo

Run it !!!

MARVEL_API_PRIVATE_KEY="private_key" MARVE_API_PUBLIC_KEY="public_key" MONGODB_URI="mongodb://localhost:27017/marvel-comics" go run main.go

ISSUE

  • limit and offset not as expected

    Change 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} and total 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 be string but returns number

    • comic 70668 with diamondCode should be string but returns number

    • comic 27399 with diamondCode should be string but returns number

    • comic 1405 with isbn should be string but returns number

    • story 30688 with title should be string but returns number

    • story 44568 with title should be string but returns number

    • creator 9551 with suffix should be string but returns number

    • creator 10669 with lastName should be string but returns number

    • and more ...

Releases

No releases published

Packages

No packages published

Languages