Is it possible to add a new UmbracoApiController in the backoffice tool?
We currently have to open project in Visual Studio and add a new UmbracoApiController and then compile the project and replace all files in the host platform.
Holm76
04/15/2024, 7:02 AM
Add and maintain obviously. Make future change to the controller via the backoffice developer tools.
d
D_Inventor
04/15/2024, 7:07 AM
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.
D_Inventor
04/15/2024, 7:08 AM
You can make the process easier though if you use automatic build and deployment methods such as GitHub Actions or Azure DevOps.