Answer the question
In order to leave comments, you need to log in
How to set up routing in Web.API?
Now the web config is configured like this:
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{request}",
defaults: new { id = RouteParameter.Optional }
);
http://localhost:42648/api/values/Table_name(1)?select=Name
http://localhost:42648/api/values/Table_name(1)/field?select=Name
http://localhost:42648/api/values/Table_name(1)/field?select=Name
Answer the question
In order to leave comments, you need to log in
Anything after the question mark has no effect on the route. The problem is most likely that you didn't describe the {controller}/{request}/{something} route.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question