Let’s continue work on MP2! Now that we have a server route delivering full course information, let’s add support for it to our API client.
Along the way we’ll continue our discussion of the basics of client-server communication using the HTTP protocol. But we’ll keep this lesson short to give you time to devote to the first set of MP2 test cases.
In the previous lesson we focused on adding support for a
/course/ route to our API server.
As a next step forward, we’ll add support for utilizing that route to our API client, but completing the
Like the server, we have some starter code to guide us, but we’ll need to make some adjustments.
Before beginning work on the client, your server
/course/ support should be finished.
Specifically, you should pass both
We’ll also discuss the use of a callback method here, and connect that to the functionality provided by our user interface.
As a reminder, on lessons where we focus on the machine project we will not assign a homework problem! However, the lesson will usually focus on helping you complete a particular part of the MP test suite, and so we encourage you to spend time on that in lieu of a homework problem.
Right now your goal should be to
getCoursemethod as described above
test2_ClientGetCourse, and should be able to meet the early deadline