Hi @Jerry Lipan ,
The Web API cannot invoke
{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"One or more validation errors occurred.","status":400,"traceId":"00-e7e38ff1d044ae45a30e27401c990a66-3c482c3f5784344a-00","errors":{"id":["The value 'GetProjects' is not valid."]}}
The issue relates the request URL. Based on your code, you should remove the GetProjects
from the request URL. After modifying, the URL should like this: https://localhost:44310/api/TafaProjects
You can refer this screenshot:
If you want to set a method name in the quest URL, you can add the name in the HttpGet
verb. Like this:
More detail information, you can check Routing to controller actions in ASP.NET Core.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion