Wrapping a internal webapi custom module/wcf service or weba

Posted by Community Admin on 04-Aug-2018 20:25

Wrapping a internal webapi custom module/wcf service or webapi

All Replies

Posted by Community Admin on 14-Nov-2017 00:00

Hi.

We are trying to implement some common backend services to be used on sitefinity.

Our endpoints are not exposed to internet so these are not available directly from webpages. This services allows you OData querying, my question is.

 

- Can we create a custom module without data backend (EF/OData) to service as a wrapper, reusable and pluggable ?

- If a module is not possible, can be create a WCF Odata sitefinity service to wrap this services ? (Content type must be provided by a module think so)

- A simple web api wrapper can be done in MVC project ?

Hope so to find any thoughts on this, I appreciate any suggestion on comments on topic.

Posted by Community Admin on 15-Nov-2017 00:00

You can create Web API within the SitefinityWebApp or within another class library (my recommendation). I don't have any specific examples to show but after you create the web api you will need to do some manual route registration for it. Try to use a route that doesnt start with /api/controller/action/id as 'api' is used by default for the sitefinity oData services.

This thread is closed