How This Course Works

How Python Web APIs works on ask-codey.com, from reading a lesson and trying its Do It to exercises checked by pytest and handed in with Git, chapter checks, module assessments and the APIs you build.

Novice · FastAPI · REST API · Updated

By

After this lesson you can

  • Describe how Python Web APIs' lessons, Do Its, Check yourself blocks, exercises, chapter checks, module assessments and projects fit together

Key takeaways

  • The course has five modules. Each one ends with a mini-capstone, an API of its own, and an assessment that passes at 80%, with three tries a day.
  • Skills are short "you can do this" statements. They are what the questions test and what your progress counts.
  • A wrong answer in Check yourself is useful news, not a failure. Read the explanation, look back at the lesson, and carry on.
  • An exercise comes with tests, programs that check your code. pytest runs them, and the exercise is done when every test passes and you've handed it in.
  • Covered counts the lessons you've finished. Mastered counts the skills you've shown you know, with three clean answers to questions that come at each skill from at least two different angles.

This course is self-study: you go at your own pace, and the course tells you how you're doing. Here is what it's made of, and how to use each part.

The shape of the course

Part What it is
Module A big stage of the course, ending with a project. There are five.
Chapter One subject, such as Getting Started with Python Web APIs or Testing an API
Topic A group of lessons inside a chapter
Lesson One idea, explained with small examples you can run

The five modules, and the project each one ends with:

Module What you learn The project
1. Your First API Setting up, the Python an API needs, HTTP and REST, and FastAPI routes Book Club API
2. Models and Validation Models that check every request, clear errors, and tests Event Sign-Up API
3. Data with SQLite SQL from zero, and an API that keeps its data in SQLite Book Club API on SQLite
4. Users and Security Passwords, signing in, who may do what, and protecting an API Room Bookings API
5. Professional Python APIs Settings and logs, async routes, checks on every push, and an API online Tool Library API

Each lesson has a level from 1 to 4: level 1 meets an idea for the first time, and higher levels go deeper.

Skills, Do Its and Check yourself

Most lessons start by listing their skills: short "you can do this" statements, such as Make a FastAPI app with app = FastAPI() and GET routes that return a dictionary or a list. Skills are what the questions test, and what your progress counts.

Many lessons have a Do it: a small task in the lesson's own example, solved in a box right on the page, with tests that tick as your code works. Python runs in your browser for it, with no packages, so there's nothing to set up. Lessons whose code needs FastAPI or another package have no Do it: their chapter's exercise, on your own computer, is where you practice.

Near the end of a lesson, a Check yourself block asks a few short questions about what you've read, then shows the answer and why. A wrong answer is useful news, not a failure: read the explanation, look back, and carry on.

Exercises

Lessons whose titles start with Exercise: give you a small API to finish: starter code in a repository on GitHub, and tests, small programs that check your code for you. You copy the starter to your computer with Git, open it in VS Code, install its packages, and run the tests in its terminal:

pytest

pytest is a test runner, the tool Python programmers use to check their code: it finds the test files in the folder, runs them, and lists which tests pass and which fail. At first they fail, and that's expected: each part you finish turns its test green. The tests send requests to your API for you, so no server needs to be running. In Module 2 you start writing tests like these yourself.

When every test passes, you hand the exercise in: you push your work to a repository of your own on GitHub and submit its address on the lesson page. That's what completes an exercise lesson. Get the Exercise Code with Git and Hand In Your Work with Git show each step.

Checks, assessments and projects

  • A chapter check is a short quiz on the chapter's skills, with a few from the chapter before. Take it as often as you like: it's practice, and it tells you what to review.
  • A module assessment ends each module. 80% passes. You get three tries a day, then a 24-hour rest before the next three. Every attempt draws different questions, so a retake is a fair new try, not a memory test.
  • A mini-capstone ends each module: an API you build with everything the module taught, such as the Book Club API. It comes with a brief, starter files, milestones, and a short checklist, called a rubric, that you score your own work against. None needs another one finished first.
  • The final capstone is the course's final assessment, and there's no big final test. You design an API of your own, put it online, and write a README that explains how to use it.

Covered, Mastered, and who gets what

When you're signed in, the course keeps two separate records of your progress:

  • Covered: the lessons you've finished.
  • Mastered: the skills you've shown you know. A skill is mastered when you answer three different questions about it cleanly, meaning right the first time and without a hint, from at least two different angles: one might ask what status code a route answers, another which line to fix. A later miss drops it back, so mastery stays honest.

Everyone can read every lesson and answer its questions. Signed in, your answers count, and you can tick lessons as done. With Premium, or if you own this course, you also get course progress on every page, the chapter checks, the module assessments, and the Certificate of Completion: every lesson covered and every module assessment passed.

A good rhythm: read a lesson and run its examples, try its Do it, answer Check yourself, do the chapter's exercise, take the chapter check, and when a module's skills are mastered, take its assessment and build its project.

Check yourself

1 question to try on the lesson page.

So what

The course is built so you always know where you stand: what you've read, what you've mastered, what to practice next, and what you've built.

Key terms