All work

Entry 02 of 04

Work

Web APIs

Connect a website to the services behind it

  • FastAPI
  • Flask
  • HTTPX
Read the walkthrough
  1. Send a request
  2. Check the response
  3. Receive the webhook

Overview

I build endpoints that let a website read and update data. When something changes in another service, a webhook can bring that update back to the site.

What it covers

  • REST endpoints
  • JSON responses
  • OAuth integrations
  • Webhooks

Connect a page to an API

  1. Choose one record the page needs and define the JSON fields it should receive.
  2. Build a Flask or FastAPI endpoint for that record and use HTTPX to check the response for a valid ID and for a missing one.
  3. Connect the page to the endpoint, then send a test webhook from the service and check that the updated record appears on the page.