Orchard CMS web services
-
27-10-2019 - |
Question
Is it possible to implement RESTful webservices with Orchard CMS? The way I understand it from reading the documentation is by implementing a new module and rendering the views as json/xml/etc.
What if I wanted to expose all of Orchard's Admin abilities through a web service?
Solution
I have not done it myself. I have used Orchard CMS and WebApi on separate projects though. I do recall seeing a blog post explaining how to integrate WebApi with Orchard CMS.
If you are not familiar with WebApi you should check it out.
Here it is: OrchardProject + WebApi = interesting
OTHER TIPS
Orchard is MVC. You would do that pretty much exactly the same way as with a regular MVC app. Only difference will be how you define your routes (implement IRouteProvider instead of adding them from global).