i want to integrate a web api with my third year project and i do not know which web browser
to use and how
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Yogie NguboPosted Sep 19, 2018, 8:08 AM
PM> Install-Package Microsoft.AspNet.WebApi
protected void Application_Start() { //this should be line #1 in this method GlobalConfiguration.Configure(WebApiConfig.Register); }
public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API routes config.MapHttpAttributeRoutes(); config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); } }
namespace
Sanwar RanwaPosted Sep 19, 2018, 8:06 AM