Wrapping a internal webapi custom module/wcf service or webapi - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Wrapping a internal webapi custom module/wcf service or webapi

  • Wrapping a internal webapi custom module/wcf service or webapi
  • 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.

  • 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.