Closed redmars27 closed 5 years ago
Thank you for doing this. Maybe we can merge this into a development branch then the stable branch will not be affected. What do you say?
Sure, if anyone else want to contribute. It is always welcomed. I should be able to spend some time on the testing part to fix it in the next few days, then I guess it will be good to be merged into master
Correcting the unit tests and updating the example file to reflect the new structure
Separating the http part of the configuration from the api configuration so it can have a cleaner setup for dependency injection. Current version is now with all the functionality as before but with the addition of dependency injection. This is the final version to merge to master.
Linked with #50 . Not a final pull request. DONT MERGE. I just wanted to let you know the current status of migrating to dependency injection and get your opinion. I have not touched yet the refactoring for the unit tests, so it will have errors.
Current changes:
with current version a command line client can be as simple as this:
and in a webclient even simpler, you just need to add 3 lines in the configure services and you can use the api in any controller: