These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

Writing your own Web API service in an iMIS project

Hello

I would like to write my own Web API service and make it part of the iMIS web site project.
I know that it is possible with generic Web Form projects:
https://docs.microsoft.com/en-us/aspnet/web-api/overview/getting-started-with-aspnet-web-api/using-web-api-with-aspnet-web-forms

I know that this is also possible in other CMS system, such as Kentico:
https://docs.kentico.com/k11/developing-websites/using-asp-net-web-api-with-kentico

The logic with Kentico is simple:

  1. Kentico offers a Web API REST service, just like iMIS does.
  2. It means that Kentico comes with Web API preinstalled in the .NET web-forms project
  3. Which means that it's easy to create your own Web API service in Kentico, you just need to configure the routing.

I expect iMIS to be the same: it also offers a WebAPI REST service, which means that it probably has Web API built into the .NET web-forms project, which means it should be easy to write my own Web API service.

However I did not find documentation about it. I don't really want to write the service as a separate IIS project. Is there a way to wire up Web API into a iMIS web-form project without creating a separate web project?

Thank you!