StaffCoder
.NET
.NET.NET 10
12 modules · 48 challengesSign up
Modules12 modules · 48 challenges
Learn how a request is shaped before and after it reaches your code: validating input in a filter attached to the endpoint rather than inside the handler, turning any unhandled failure into one consistent error body, limiting how often a caller may ask, and ordering those stages so each sees what it is meant to see.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Endpoint Validation Filter

Sign up to unlock
—No data yetmedium
About this challenge

This problem covers checking an incoming booking once, in one reusable place attached to a whole set of related routes, so that a bad request is turned away with a clear list of what was wrong before any of the code behind those routes runs.

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

Global Exception Handler

Sign up to unlock
—No data yetmedium
About this challenge

This problem covers turning every failure the application raises into one clear answer that says what went wrong and nothing about how the application is built.

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

Api Rate Limiter

Sign up to unlock
—No data yetmedium
About this challenge

This problem covers holding a public endpoint to an allowance of calls per client inside a time window, turning away the calls that go past it while leaving the rest of the application alone.

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

Hardened Public API Pipeline

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

This problem covers putting the guards of a public API together in one working order, so that bad input is turned away before any work starts, callers who ask too often are held back, failures come back as a tidy document that gives nothing away, and every answer can be traced back to the request that caused it.

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.