Click here to Skip to main content
14,743,194 members
Home » Discussions » Web Development
   

Web Development

 
AnswerRe: RestSharp Response Question Pin
Richard Deeming21-May-19 1:49
mveRichard Deeming21-May-19 1:49 
QuestionAuthentication/Authorisation Pin
Mycroft Holmes16-May-19 13:47
professionalMycroft Holmes16-May-19 13:47 
AnswerRe: Authentication/Authorisation Pin
Richard Deeming17-May-19 2:03
mveRichard Deeming17-May-19 2:03 
GeneralRe: Authentication/Authorisation Pin
Mycroft Holmes17-May-19 13:44
professionalMycroft Holmes17-May-19 13:44 
QuestionQuestion about empty button top positioning. Pin
neodeaths11-May-19 13:39
Memberneodeaths11-May-19 13:39 
AnswerRe: Question about empty button top positioning. Pin
Richard Deeming13-May-19 9:09
mveRichard Deeming13-May-19 9:09 
QuestionWeb API Not Working Pin
Kevin Marois10-May-19 11:57
professionalKevin Marois10-May-19 11:57 
AnswerRe: Web API Not Working Pin
Richard Deeming10-May-19 12:12
mveRichard Deeming10-May-19 12:12 
The default API routing uses the HTTP method, not the action name. Try removing the final "Test" from the URL: http://localhost:49970/API/Test/

You can add extra routes to use the action name if you want:
routes.MapHttpRoute(
    name: "ActionApi",
    routeTemplate: "api/{controller}/{action}/{id}",
    defaults: new { id = RouteParameter.Optional }
);

Routing in ASP.NET Web API | Microsoft Docs[^]

Alternatively, you could use attribute routing:
Attribute Routing in ASP.NET Web API 2 | Microsoft Docs[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralMessage Closed Pin
17-May-19 0:01
Memberavrora malkova17-May-19 0:01 
QuestionNeed Some Of Your Help Pin
Member 143595087-May-19 22:12
MemberMember 143595087-May-19 22:12 
QuestionMVC5 Load partial view on link click Pin
#realJSOP4-May-19 7:52
mva#realJSOP4-May-19 7:52 
AnswerRe: MVC5 Load partial view on link click Pin
jkirkerx5-May-19 14:53
professionaljkirkerx5-May-19 14:53 
GeneralRe: MVC5 Load partial view on link click Pin
#realJSOP6-May-19 2:38
mva#realJSOP6-May-19 2:38 
GeneralMessage Closed Pin
14-May-19 9:43
Membermalkovich198814-May-19 9:43 
AnswerRe: MVC5 Load partial view on link click Pin
Richard Deeming8-May-19 2:31
mveRichard Deeming8-May-19 2:31 
Questiononline distance learning management system Pin
Sibanda Benon30-Apr-19 21:42
MemberSibanda Benon30-Apr-19 21:42 
AnswerRe: online distance learning management system Pin
Kevin Marois2-May-19 11:12
professionalKevin Marois2-May-19 11:12 
AnswerMessage Closed Pin
16-May-19 10:35
MemberMember 1437530116-May-19 10:35 
QuestionHow To Run Website Without Web Hosting Pin
Kamakoti Satish Kumar23-Apr-19 2:13
MemberKamakoti Satish Kumar23-Apr-19 2:13 
AnswerRe: How To Run Website Without Web Hosting Pin
#realJSOP23-Apr-19 6:28
mva#realJSOP23-Apr-19 6:28 
AnswerRe: How To Run Website Without Web Hosting Pin
Nathan Minier23-Apr-19 19:53
professionalNathan Minier23-Apr-19 19:53 
AnswerRe: How To Run Website Without Web Hosting Pin
Rajesh Murthy S15-May-19 20:48
MemberRajesh Murthy S15-May-19 20:48 
QuestionFlask/React/Mongo - Clues, hints, tips or gotchas Pin
Nagy Vilmos16-Apr-19 23:43
professionalNagy Vilmos16-Apr-19 23:43 
QuestionRazor Pages and Layout.cshtml Pin
Mycroft Holmes16-Apr-19 23:23
professionalMycroft Holmes16-Apr-19 23:23 
AnswerRe: Razor Pages and Layout.cshtml Pin
Maciej Los17-Apr-19 0:17
mveMaciej Los17-Apr-19 0:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.