Week 9 - Networking and APIs

Introduction to Networking

Client Server Model

TCP/IP Protocol

HTTP Protocol

URL Format

Web APIs

API Testing Tools

Using APIs

AI Responsible Use

Practice

Assignment

Core program

Let’s get practical

For the exercises below, you will need a local clone of the Learning-Resources repository at this link:

Please clone this repository to your local computer (if you have not already done so) before continuing.

Exercise 1 – GET request

The link below provides an exercise that uses the Nager.Date public Web API that we discussed in the Using APIs section:

https://github.com/HackYourFuture/Learning-Resources/tree/main/core-program/week-9/public-holidays

It consists of a pre-made web application with just one part waiting for you to complete: fetching data from the Web API. For this, you will need to study the documentation of the Nager.Date web API. Full instructions are given in the README of the example.

Exercise 2 – Using Postman

In this exercise, we will use a pre-made custom backend application to practice GET, POST, PUT, and DELETE requests. Visit the link below and follow the Getting started section in the README.

https://github.com/HackYourFuture/Learning-Resources/tree/main/core-program/week-9/simple-api

Exercise:

  1. Read the API documentation and use Postman to test each of the given API endpoints.
  2. For each request, observe the output logged in the terminal that is running the backend and compare it to the response you see in Postman.

Exercise 3 – Authentication

In this exercise, you will walk through a simple authentication flow using a pre-made backend and Postman.

You will:

Full details at: https://github.com/HackYourFuture/Learning-Resources/tree/main/core-program/week-9/auth-api


The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0

CC BY-NC-SA 4.0 Icons

*https://hackyourfuture.net/*

Found a mistake or have a suggestion? Let us know in the feedback form.