Put in order · Python course · Module 4: Data, APIs and Databases

REST API Pattern

Arrange the steps for building a REST API client:

Items to put in order

  • animals = response.json()
  • base_url = 'https://api.example.com'
  • response = requests.get(f'{base_url}/animals')
  • import requests

You can check the correct answer by solving this task in the CodeWorlds game.