Open Poltergeisen opened 5 years ago
Got it to work with the Mongo schema of:
{ "_id": ObjectId("5fe9990f955a0000b40024e9"), "Name": "5fe9294ad4aaf8c8206da1cb", "Developer": "How to train your dragon", "Publisher": "Ever wonder how?", "Platforms": [ "dragons", "training" ] }
Then I queried with Postman with:
{ "Name": "5fe9294ad4aaf8c8206da1cb", "Developer": "How to train your dragon", "Publisher": "Ever wonder how?", "Platforms": [ "dragons", "training" ] }
As a raw json post request to: http://localhost:50836/api/Game
Hope this helps anyone having trouble.
Would it be possible to add unit test examples? I'm having difficulties trying to figure out how to mock the calls in the context.
Thanks!