Add a new API to IPC which used to manage bots
A new method to manage bots
Current solution need to manage bot config files, I want to invoke ASF method all via IPC API.
I think it is useful in some environment like Docker.
Sure.
I decided to write a ASF manage panel. (#610) I want split the ASF and the panel, and run in different Docker container, that's means file manage may difficult to manage bot config.
At first I was sceptical to this as I always wanted to keep premise of making config files possible to be read-only and ASF never managing config files by itself, but indeed it could be nice for web-based admin panel.
I'm thinking about API to create new bot config file, remove existing bot config file and edit bot config file, all 3 would accept JSON-serialized BotConfig object. In addition to that we might also add endpoint to edit global ASF config file, that one would accept GlobalConfig object.
Yeah, I like this way, on the wishlist.
It's a good moment now to evaluate if I want to keep this awful low-level HTTP interface I wrote by myself in V3 or move to some general framework that would make it easier to maintain our HTTP API. An obvious candidate for that is something like EntityFramework but I hate how huge it is and how many dependencies it has just for a simple way to create a web server, that's definitely out.
If somebody has some C# package in mind that could help us with creating HTTP API then feel free to suggest one, I'll probably evaluate myself available solutions and decide upon something in upcoming week.
@JustArchi Try out for unosquare/embedio? It's looks lightweight and support dotnet core.
This might be exactly what we need, thanks!
Most helpful comment
@JustArchi Try out for unosquare/embedio? It's looks lightweight and support dotnet core.