Skip to main content

✏️ Communicating With An API - Part 1

Goals: Create an application that consumes an API.

Warm Up


Over the next two class sessions, work through this list of common interview questions with your partner before you start coding for the day. Once again, this may be formatted as a mock interview, or you may discuss potential answers together:

Non-Technical

  • What about coding interests you? What are your favorite parts?
  • What's your workflow like when you sit down to create an application?
  • What made you decide to attend a coding bootcamp?

General Coding

  • What are the advantages to testing your code. What about disadvantages?
  • How do you integrate testing into your general workflow when creating an application?
  • Describe an HTTP GET request.

Code


API-Consuming Application

For the second half of this section, you and your pair will build an application that interacts with an API that you (or your classmates) built at the start of the section. If you're using a classmate's API, make sure you clone or fork the project and push changes to your own repo. Your goal is twofold: continue improving the API itself and make an application for users to interact with!

You can choose to continue working with your pair that you worked with to build the API or you can choose to work with another pair.

On short weeks, you'll have less time to build an API-consuming application. Remember that you'll be expected to build an API and put your best effort into implementing at least one of the five objectives from the Further Exploration lesson for this section's independent project, so if you don't feel comfortable with any of these objectives yet, take the time to practice further.

Peer Code Review


  • Application successfully returns responses for each API call.
  • Host application successfully consumes API.
  • README thoroughly describes all endpoints along with parameters that can be used.
  • Application works as expected.