New side project- WebAPI To CLI–part 1
Source code on https://github.com/ignatandrei/webAPI2CLI/
|1||WebAPI2CLI - Description|
|3||WebAPI2CLI - implementing|
|4||WebAPI2CLI - tests|
|5||WebAPI2CLI - Devops and CI/CD|
|6||WebAPI2CLI - documentation|
|7||WebAPI2CLI - Conclusions|
|8||WebAPI2CLI - Zip application|
I have had an idea; What if the WebAPI application can be called from the console application itself ?
This will permit just having the DI running – and all the stuff that WebAPI can work with when calling a controller.
Will be good in a CI / CD workflow – testing the full API instead of relying to test just the dll ( Yes, I know about skinny controllers )
And will be good in Jenkins / any other tool / in order to execute directly the WebAPI instead of recurring to curl / powershell
So – seems to have a good piece of software to start – how we do this ?
First, how all the commands should be passed ? If we pass via command line, there is pretty much possible for someone to miss things.
Second , if the user does not pass via command line, the WebAPI should work as usual.
So , 5 days and 88 commits later , this is the result: https://github.com/ignatandrei/webAPI2CLI/ .
It has the documentation about how to install and use it. Enjoy !