Hi there! As far as I can tell, this is not possible. The C# code for the controller needs to be pre-compiled and cannot be added while the website is running.
If you want to create and maintain an API, you'll have to do that through code and deploy new changes.