# Configuring Web API

## Content

ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a wide range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework. The **C1Studio Web API Edition** is a set of API's that enable exporting of FlexChart, Gauge, Image, and import and export of Excel sheets with FlexGrid. The APIs are available as Visual Studio templates with support for Web API 2.2 and ASP.NET Core 2.0 Web API.
This topic demonstrates how to create a Web API service application in Visual Studio. This builds the server side (or endpoint) for a client application. The client application sends a [request](/componentone/api/webapi/online-webapi/dotnet-framework-api/C1.Web.Api/C1.Web.Api.ExportSource.html) to the endpoint for accessing its service and gets a response in return.

1. In Visual Studio, select **File \| New \| Project** to create a new Web API Service Project.
2. Under installed templates, select **C1 \| Web \| C1 Web API Application \(C\# or VB\)** to create a new C1 Web API Service application.
<br>
    ![C1Web API - Visual Studio project template](https://cdn.mescius.io/document-site-files/images/66c72527-2495-47b0-9257-2ee31dae74e5/images/selectc1templateiis.png?width=750)
3. Set a **Name** and **Location** for your application, and then Click **OK.**
4. In the **ComponentOne ASP.NET Web API Application Wizard**, select the Web API Services according to your project requirements.
<br>
    ![C1Web API - Project Settings UI](https://cdn.mescius.io/document-site-files/images/66c72527-2495-47b0-9257-2ee31dae74e5/images/pdf.png?width=585)
5. Once you have selected the **Services** from the wizard, click **OK** to create a new C1 Web API Service application. For more information, see [Services](/componentone/docs/webapi/online-webapi/Services) topic.
<br>
    In this new project, ComponentOne template adds the references C1.Web.Api.dll, C1.C1Excel.dll, and other related assemblies.

    >type=note
> 

> **Note**: license.licx file is automatically added to your application. For more information on how to add licensing to your application, refer to [Licensing](/componentone/docs/webapi/online-webapi/overview/Licensing).

6. You can also access data from a configured remote or local storage. For more information on how to configure local data storage, see [Configuring Storage](/componentone/docs/webapi/online-webapi/overview/WorkingwithC1WebAPI/ConfiguringWebAPI/ConfiguringStorage), [Configuring Server-side Data](/componentone/docs/webapi/online-webapi/overview/WorkingwithC1WebAPI/ConfiguringWebAPI/Server-sideConnectionString), and [Configuring .NET collections](/componentone/docs/webapi/online-webapi/overview/WorkingwithC1WebAPI/ConfiguringWebAPI/Configuring.NETCollections).
7. You have configured the service project. Deploy the project on IIS (for service application hosted on IIS) or simply run the application (if Self-hosted), and start using it.

>type=note
> **Note**: To secure your data, you can customize the **WEB API** project to configure security according to your requirements.

Your server-side application is successfully created. You can now use the generated URL of launched Web API service to make a call to the service project from your client application. You can use Web API services such as Report, Excel, Image and Barcode in the client application. For more information, see [Services](/componentone/docs/webapi/online-webapi/Services) topic.
The following image shows a hosted Web API service application in browser.

![C1Web API -Service Deployed](https://cdn.mescius.io/document-site-files/images/66c72527-2495-47b0-9257-2ee31dae74e5/images/webapiservice.png)
In the example above, the service has been hosted at "`https://developer.mescius.com/componentone/demos/aspnet/c1WebAPI/latest/`".
Once you have successfully hosted a **Web API URL** for Services, you can access and call these Web API service for exporting and importing excel files, excel images, generate excel from given data and template, and generating barcode from a given text. For more information on how to work with Web API Services, see [Services](/componentone/docs/webapi/online-webapi/Services) topic.

## See Also

[Configuring Storage](/componentone/docs/webapi/online-webapi/overview/WorkingwithC1WebAPI/ConfiguringWebAPI/ConfiguringStorage)
[Configuring Server-Side Data](/componentone/docs/webapi/online-webapi/overview/WorkingwithC1WebAPI/ConfiguringWebAPI/Server-sideConnectionString)
[Configuring .NET Collections](/componentone/docs/webapi/online-webapi/overview/WorkingwithC1WebAPI/ConfiguringWebAPI/Configuring.NETCollections)