- Home
- .NET code examples
- A FromBody and FromQuery sample in ASP.NET Core Web API
A FromBody and FromQuery sample in ASP.NET Core Web API
Having problems in an ASP.NET Core Web API with using the FromBody or FromQuery attributes?
Software
This is the software that will need to be installed onto your machine.
- Visual Studio 2019. Version 16.8.4 or above (may work with lower versions). It will work with the free community version.
- .NET 5.0 SDK, or above.
- Postman to test out the endpoints (optional)
Get The Application Working
These are the steps to get the application working.
- Fill out the code example form. We will send you an email where you can download the code example.
You are now ready to go.
Open the Project in Visual Studio
Open up RoundTheCode.FromBody.sln in Visual Studio.
https://localhost:7000.
https://localhost:7000/web and https://localhost:7000/webapi.
Postman folder in the source code provided.
More Information
To get a better understanding on how the FromBody and the FromQuery behave, read our article "Why is the ASP.NET Core FromBody not working or returning null?".
Give us your anonymous feedback regarding this page, or any other areas of the website.
Watch .NET tutorials
Subscribe to our YouTube channel
Related code examples