Simple console phonebook
To run app:
- start project using VS 2019.
- execute "dotnet restore" command
- to run console-app set 'Phonebook.Console' as Startup Project
- to run web-app set 'Phonebook.WebApi' as Startup Project
- send post request to 'http://localhost:9080/api/command/execute'
- request body:
{
"input": "add newContact +199999999"
}
Supporting commands:
- add - format 'add {name} {phone}'
- list
- help
To add new command need to do the following:
- Create implementation of ICommand;
- Add attribute CommandAttribute to the implementation.