StaffCoder
FastAPI
FastAPIFastAPI 0.139Python 3.13
7 modules · 28 challengesSign up
Modules7 modules · 28 challenges
Learn how FastAPI reads everything a request carries besides its JSON body: the fields a browser form submits, uploaded files single and many, the headers a client sends about itself, and the cookies it carries back, with each part declared so the framework converts and refuses it before your code runs.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Login Form Fields

Sign up to unlock
—No data yeteasy
About this challenge

This problem covers signing a member in from the values a browser form submits, so a matching pair is greeted by name and a wrong one is turned away without saying which half was wrong.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Validated File Upload

Sign up to unlock
—No data yeteasy
About this challenge

This problem covers taking a file someone uploads together with a note about it, turning away anything of the wrong kind or over the size allowed, and reporting back what arrived.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Header And Cookie Inputs

Sign up to unlock
—No data yeteasy
About this challenge

This problem covers reading the small pieces of context a client sends alongside a request, its version and its chosen release channel, and answering with both a body and headers of its own.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Document Portal Intake

STAR
Solving it completes the module
—No data yeteasy
About this challenge

This problem covers taking a submission that arrives in several pieces at once, a form, files, a header and a cookie, routing it to the right desk, and refusing the pieces that break a rule.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.