I Created a custom module in Orchard CMS (1.10) which exposes an API endpoint. I would like to expose a Get call where if I pass the ID of a Content Item it returns the Html of that Content Item.
I also would like to know how can I return the Page layout html in API call as well?
Thank you
I'm pretty sure what you're asking is exactly what the
Displaymethod of theItemControllerinOrchard.Core.Contents.Controllersis doing:The view's code is this: