All courses

Programming

APIs and REST with Python

Connect Python to web services. Work with APIs and REST to bring external data and functionality into your programs.

2 days Intermediate Tailored to your team

Overview

This course will teach the fundamentals of REST, and how to consume a REST API with Python.

What you’ll need

  • Laptop and headphones and microphone
  • Microsoft Office (Word, PowerPoint, Excel)
  • Google Chrome or Microsoft Edge
  • GitHub Codespaces
  • Postman (www.postman.com)

Course topics

  • Introduction to REST APIs with Postman - a crash-course
    • Introduction to Postman
    • JSON and XML
    • Introduction to JSON
    • Introduction to HTTP Status Codes
    • Introduction to HTTP Methods
  • What is REST?
    • Use Postman to Create, Read, Update and Delete records
  • Build a simple Python program that Consumes an API
    • Using pip, we’ll install the requests library
    • Consume a simple API using Requests
  • Consuming the data
    • Mapping a JSON response to
      • A Dictionary
      • A Pandas DataFrame
      • Python Objects
  • Creating an API using Flask
  • Building a Serverless API using Visual Studio Code and Azure Functions