I have a asp.net web api project in which there is only one api controller and inside that one get method,nothing else.when i try to run it,it is showing below error
HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory. [CacheOutput(ClientTimeSpan = 300, ServerTimeSpan = 300)] public IEnumerable<Movie> Get() { return repository.GetEmployees().OrderBy(c => c.EmpId); } and the url is http://domain:53538/api/employees
and WebApiConfig is
public static void Register(HttpConfiguration config) { // Web API configuration and services // Web API routes config.MapHttpAttributeRoutes(); config.Routes.MapHttpRoute( name: "SearchApi", routeTemplate: "api/{controller}/{action}/{searchstr}" ); config.Routes.MapHttpRoute( name: "DefaultApiWithEmpId", routeTemplate: "api/{controller}/{EmpId}", defaults: new { employeeId = RouteParameter.Optional } ); config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); }
moviesController?