How to redirect url to specific endpoint
I need to add an api endpoint in a web project (=> WebSiteUrl/api/token).
I need to add an api endpoint in a web project (=> WebSiteUrl/api/token).
I am trying to create a basic API service in ASP.Net Core 3.1.
Hi I’m trying to build my first API wit ASP.net Core and have been following this tutorial: https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-3.1&tabs=visual-studio
I’m working on an App in Xamarin.Forms. I want to send the Post Request to an API with form-data. In the code below, it returns the success message, but the data isn’t posted there.
Issue happened on ASP.NET Core 3.1 Web API controller. I have a method in controller with [HttpGet] attribute and [FromBody] for only parameter: [HttpGet] public async Task<ActionResult> GetMessages([FromBody] MessageRM messagesRequest) This method expects to receive a request model: public class MessageRM { public int RegionID { get; set; } public int? LastMessageID { get; set; … Read more
I cannot return List from webform async method via Postman. It just goes forever.
Am I missing something very tricky here?
“The ModelState represents a collection of name and value pairs that were submitted to the server during a POST.” That is the best definition I have found for the ModelState property. So I have some code using a web api that Creates a customer and Updates a customer, and my question is, since I have accessed ModelState in CreateCustomer, wont the ModelState always be not valid if I hadnt already submitted a Post request with CreateCustomer? Or is the ModelState updated with both PUT and Post requests? Because according to the definition above, the ModelState property wont be initialized until I create a customer, and in my UpdateCustomer method, I need to check if the customer object given in the parameters is the one that is valid, not any Model that was submitted to the server during a different POST request.
I’m following the Identity Server 4 Quickstart and I’m having a weird issue even though I followed it step by step.
Im following this tutorial
I started looking into Openweathermap API (weather Data). The Api response is a Json file. I managed to get everything working with MS WinForms in (VisualStudio).