Skip to content

Instantly share code, notes, and snippets.

@marckm
Last active December 16, 2015 06:49
Show Gist options
  • Save marckm/5394649 to your computer and use it in GitHub Desktop.
Save marckm/5394649 to your computer and use it in GitHub Desktop.
Default WebApiConfig.cs content
namespace DataIntegrationService
{
using System.Web.Http;
/// <summary>
/// Contains the configuration of Web Api.
/// </summary>
public class WebApiConfig
{
/// <summary>
/// Registers the routes for Web Api.
/// </summary>
/// <param name="config">The configuration.</param>
public static void Register(HttpConfiguration config)
{
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional });
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment