This course will be retired on June 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Before we start working on our project, let's review what the Web API framework is and why we would want to use it to create services or APIs.
Follow Along
To follow along committing your changes to this course, you'll need to fork the aspnet-fitness-frog-spa repo. Then you can clone, commit, and push your changes to your fork like this:
git clone <your-fork>
cd aspnet-fitness-frog-spa
git checkout tags/v1.5 -b introducing-web-api
Customizing Web API
ASP.NET Web API provides a number of ways that it can be customized or extended. See the following resources for more information:
- HTTP Message Handlers
- Media Formatters
- Type Converters
- Model Binders
- Value Providers
- HttpActionResult Types
Self-Hosting Web API
Throughout this course, we'll be using IIS Expressβa lightweight version of Microsoft's IIS (Internet Information Services) web serverβto host our Web API application. But you can also host your Web API applications outside of IIS, using a feature called "self-hosting". For more information about how to self-host Web API applications, see the following resource:
Returning JSON from an MVC Controller
As mentioned, it's possible to use ASP.NET MVC to return responses containing JSON formatted data. For more information on how to do that, see these resources:
Additional Learning
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up