I have created couple of custom tables into CMS database to meet the client business requirements and which is hosted in Episerver DXC.
Now, Our client has a requirement to build couple of REST Apis to expose and perform CRUD operations onto custom tables which are created in CMS database.
I am planning to create Api controllers within same cms website to meet our client requirements.
So, here i need couple of suggestions to proceed further on this.
1) Do i get any routing conflicts, If i include Api controllers into same cms website?
2) Do i need take care of any additional configurations to make it REST api works in existing episerver cms website?
3) Anyone came across this scenario? Could anyone please share some references to get better understanding on this approach?
Please let me know any suggestions on this.
If you properly register your API controllers with proper routes, you should be fine.
If you want to make proper use of Dependency Injection in your API controllers, there are some steps you need to follow to make that work.
Here is a very good and detailed post: https://swapcode.wordpress.com/2019/12/07/dependency-injection-with-episerver-cms-and-web-api/ - works fine for me.
Here is also a good post covering lot of information:
Thanks for the update.
I have managed to integrate Apis into episerver cms solution. Its all good now.