Esempio n. 1
0
        public static void Register(HttpConfiguration config)
        {
            // Web API configuration and services

            RestfulObjectsConfig.RegisterRestfulObjectsRoutes(RouteTable.Routes);

            // Web API routes
            config.MapHttpAttributeRoutes();

            config.Routes.MapHttpRoute("DefaultApi", "api/{controller}/{id}", new { id = RouteParameter.Optional }
                                       );
        }
 public Startup(IConfiguration configuration)
 {
     Configuration = configuration;
     RestfulObjectsConfig.RestPreStart();
 }
 public static void PostStart()
 {
     RestfulObjectsConfig.RestPostStart();
 }