Skip to content

Instantly share code, notes, and snippets.

View hansmaad's full-sized avatar
💻
Hacking

Hannes Kamecke hansmaad

💻
Hacking
  • Cologne, Germany
View GitHub Profile
@hansmaad
hansmaad / gist:11254836
Last active August 29, 2015 14:00 — forked from mauricedb/gist:5356933
WebApiConfig JSON configuration
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);