POST returns null transaction for custom media type
david-acker opened this issue · comments
Issue: An otherwise successful POST to api/transactions returns a transaction object which is null (all properties either null or default) when the Content-Type header of the request is set to the media type "application/vnd.trade.hateoas+json". Should instead return the linked representation of the created transaction from the POSTed transaction.
Note: POST with "application/json" is unaffected.
Fixed by adding the mapping from TransactionForReturnDto to TransactionForReturnWithLinksDto (object returned by the controller action) that was missing.