Any ideas on how to test a route passing a hardcoded json body?
any ideas on how to test a route passing a hardcoded json body?
talking about akka-http, it looks like akka testkit is defining the content type as text/plain because I want to marshall a string
the way I have found is to serialize the json string into a JsObject and then, map that to a message entity, there should be a simpler way
talking about akka-http, it looks like akka testkit is defining the content type as text/plain because I want to marshall a string
the way I have found is to serialize the json string into a JsObject and then, map that to a message entity, there should be a simpler way
No any search results
You already invited:
1 Answers
Adam Burnham
Upvotes from:
For example:
I'm not sure how it would be done with the request builders though. I've not used them for anything other than gets yet.