Click here to Skip to main content
15,888,816 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Simple Question on Http Verbs Pin
Kevin Marois1-Sep-20 7:10
professionalKevin Marois1-Sep-20 7:10 
GeneralRe: Simple Question on Http Verbs Pin
F-ES Sitecore1-Sep-20 7:25
professionalF-ES Sitecore1-Sep-20 7:25 
GeneralRe: Simple Question on Http Verbs Pin
Kevin Marois1-Sep-20 10:23
professionalKevin Marois1-Sep-20 10:23 
GeneralRe: Simple Question on Http Verbs Pin
F-ES Sitecore1-Sep-20 10:33
professionalF-ES Sitecore1-Sep-20 10:33 
GeneralRe: Simple Question on Http Verbs Pin
Kevin Marois1-Sep-20 11:09
professionalKevin Marois1-Sep-20 11:09 
GeneralRe: Simple Question on Http Verbs Pin
F-ES Sitecore2-Sep-20 0:37
professionalF-ES Sitecore2-Sep-20 0:37 
GeneralRe: Simple Question on Http Verbs Pin
DerekT-P1-Sep-20 11:12
professionalDerekT-P1-Sep-20 11:12 
GeneralRe: Simple Question on Http Verbs Pin
F-ES Sitecore2-Sep-20 0:34
professionalF-ES Sitecore2-Sep-20 0:34 
GeneralRe: Simple Question on Http Verbs Pin
DerekT-P2-Sep-20 3:03
professionalDerekT-P2-Sep-20 3:03 
GeneralRe: Simple Question on Http Verbs Pin
F-ES Sitecore2-Sep-20 3:13
professionalF-ES Sitecore2-Sep-20 3:13 
GeneralRe: Simple Question on Http Verbs Pin
F-ES Sitecore2-Sep-20 3:12
professionalF-ES Sitecore2-Sep-20 3:12 
GeneralRe: Simple Question on Http Verbs Pin
Kevin Marois2-Sep-20 6:15
professionalKevin Marois2-Sep-20 6:15 
QuestionImage validation Pin
Member 1492048222-Aug-20 9:01
Member 1492048222-Aug-20 9:01 
QuestionHi, can someone please help me with a task that I am struggling with. Pin
Member 1490081928-Jul-20 1:35
Member 1490081928-Jul-20 1:35 
AnswerRe: Hi, can someone please help me with a task that I am struggling with. Pin
W Balboos, GHB1-Aug-20 11:05
W Balboos, GHB1-Aug-20 11:05 
GeneralRe: Hi, can someone please help me with a task that I am struggling with. Pin
Sarbjit Grewal3-Sep-20 18:32
professionalSarbjit Grewal3-Sep-20 18:32 
GeneralRe: Hi, can someone please help me with a task that I am struggling with. Pin
Mycroft Holmes4-Sep-20 12:20
professionalMycroft Holmes4-Sep-20 12:20 
AnswerRe: Hi, can someone please help me with a task that I am struggling with. Pin
Richard MacCutchan1-Aug-20 20:59
mveRichard MacCutchan1-Aug-20 20:59 
QuestionCan i use mailto for this? Pin
kingu39921-Jul-20 5:15
kingu39921-Jul-20 5:15 
AnswerRe: Can i use mailto for this? Pin
Afzaal Ahmad Zeeshan1-Sep-20 9:10
professionalAfzaal Ahmad Zeeshan1-Sep-20 9:10 
QuestionHow can I submit with 1 button and 1 form with 2 actions? Pin
amitb220-Jul-20 23:06
amitb220-Jul-20 23:06 
AnswerRe: How can I submit with 1 button and 1 form with 2 actions? Pin
W Balboos, GHB30-Jul-20 7:06
W Balboos, GHB30-Jul-20 7:06 
QuestionAsp.Net Core Web API Pin
Kevin Marois15-Jul-20 11:43
professionalKevin Marois15-Jul-20 11:43 
AnswerRe: Asp.Net Core Web API Pin
Richard Deeming15-Jul-20 23:29
mveRichard Deeming15-Jul-20 23:29 
I've just tried this simpler version:
C#
[ApiController]
[Route("[controller]")]
public class TestController : ControllerBase
{
    private static readonly string[] Values =
    {
        "Foo", "Bar", "Baz"
    };

    [HttpGet]
    public IEnumerable<string> GetAll() => Summaries;
    
    [HttpGet]
    public string Get(int index) => Summaries[index];
}
With that, I get an ambiguous match exception:
The request matched multiple endpoints. Matches:

TestCoreApi.Controllers.TestController.GetAll (TestCoreApi)
TestCoreApi.Controllers.TestController.Get (TestCoreApi)
After changing the route on the Get method, it works as expected:
C#
[HttpGet("{id:int}")]
public string Get(int index) => Summaries[index];




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

Questionnot close sqlitedb in php is ok? Pin
Member 144909644-Jul-20 21:05
Member 144909644-Jul-20 21:05 

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.