So , I went a little crazy. This branch has a bunch of things in it;
We not handle all runtime exceptions though a controller advice and add the old header in the response as well.
All controller are now returning DTOs.
The ledger request ID is now also found in the instance itself so that we can directly change the ledger status through the instance controller. Don't worry if the ledger is not connected, the ledger service auto-wiring is optional so we handle that.
The front-end now supports the service status buttons to update the instance and ledger statuses.
The statuses are distinguished between allowed and restricted (accepted/failed etc). The restricted ones can only be set through the ledger registration responses.
Also a bunch of utils in there to make our lives a bit easier.
And some unit testing... we need a bit more of that.
Have a look and let me know!
So , I went a little crazy. This branch has a bunch of things in it;