EIEIOTECHNOVATION
← Training programmes

EIEIO / PROGRAMMING & DEVELOPMENT

Creating Web APIs with Python and Flask

Course outline

1 day

Duration

1 day

Course Description

Web APIs are tools for making information and application functionality accessible over the internet. In this lesson, you will:

  • Learn what an API is and when you should use one.
  • Learn how to build a web API that returns data to its users.
  • Learn some principles of good API design, applying them to an API that draws book metadata from a database.

Pre-requisite

Experiences in developing Python applications will be beneficial.

Course Contents

Setting Up

Prerequisites

  • Installing Python and Flask

Introducing APIs

  • What is an API?
  • When to Create an API
  • API Terminology

Using APIs

  • Why Use APIs as a Researcher?
  • An API Case Study: Sensationalism and Historical Fires
  • What Users Want in an API

Implementing Our API

Overview

  • Creating a Basic Flask Application
  • Running the Application
  • What Flask Does
  • Creating the API
  • Finding Specific Resources
  • Understanding Our Updated API

API Design Principles

  • Designing Requests
  • Documentation and Examples

Connecting Our API to a Database

  • Understanding Our Database-Powered API
  • Our API in Practice

Programme scope, delivery arrangements and suitability are confirmed during enquiry.