Join Michael Sullivan for an in-depth discussion in this video Consuming a web API, part of Learning ASP.NET.
…Now let's see what it looks like to make calls to…our restful API from a client that you're probably more familiar with.…We'll use a web form to test a jQuery Ajax call…and also a C Sharp service side call in the code behind.…We'll continue with the Explore California solution from the last video, so that we…can run a single application to test all this to keep things a little simpler.…We'll just add our Web Form to the API project.…So right-click, Add, and you can choose Web Form right from this Context menu.…
I'm going to call it API client.…Let's go ahead and add a title up here.…Explore California Tours.…And then I'm going to add an ID to this inner div, so that…I can use it to dynamically add content that I retrieve from my web API.…We'll just call it tours.…Now in the scripts folder, let's go ahead and…add the minimized J Query library to the page.…And underneath that, I'm going to add a function.…To be executed when the dom is ready.…
An easy way to retrieve all of the tours…in the system, using jQuery Ajax, is to getJSON method.…
- Exploring .NET in general and ASP.NET in particular
- Creating controllers and views
- Working with models and forms
- Managing data
- Creating web APIs
- Establishing connections with SignalR
Skill Level Beginner
ASP.NET MVC 4 Essential Trainingwith Jess Chadwick3h 56m Intermediate
1. Exploring the Framework and the Development Environment
2. Structuring Applications
3. Working with Data
Using LINQ to Entities6m 12s
4. Web API and RESTful Services
5. Real-Time Web with SignalR
6. Hands-On Practice
Next steps2m 3s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.