You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to get correct Content-Type as a response from spray-json marshaling (in akka-http).
I'm using similar code to this in my routing:
complete {
val u: User = service.getUser(...)
Jsonapi.asRootObject(u)
}
I have appropriate JsonapiRootObjectWriter[User] in scope and getting JSON output as expected, only issue I have is that Content-Type is application/json instead of application/vnd.api+json
I'm using latest scala-jsonapi and akka-http v 2.4.4
The text was updated successfully, but these errors were encountered:
I'm unable to get correct
Content-Type
as a response from spray-json marshaling (in akka-http).I'm using similar code to this in my routing:
I have appropriate
JsonapiRootObjectWriter[User]
in scope and getting JSON output as expected, only issue I have is thatContent-Type
isapplication/json
instead ofapplication/vnd.api+json
I'm using latest
scala-jsonapi
andakka-http
v 2.4.4The text was updated successfully, but these errors were encountered: