dgs-framework
dgs-framework copied to clipboard
Return specification Map from DgsRestController
Instead of directly serializing the response to a String or bytes in DgsRestController, return the response as a Map as built by ExecutionResult.toSpecification. Doing this allows the Jackson HttpMessageConverter to serialize the result directly to the response's OutputStream.