StaffCoder
.NET
.NET.NET 10
12 modules · 48 challengesSign up
Modules12 modules · 48 challenges
Learn how routes become endpoints: mapping the verbs of a resource, constraining what a URL segment will match, taking query values straight into handler parameters, and sharing one prefix across a group.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Book Catalog Endpoints

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

This problem covers mapping the list, detail and create endpoints of a resource as minimal APIs, each answering with the right status code, and pointing the caller at what was just created.

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

Route Constraints For Order Lookup

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

This problem covers adding route constraints, so an order number only matches a whole number and a tracking code only matches a GUID, and a badly formed URL is turned away by routing before it reaches the handler.

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

Search Endpoint Query Binding

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

This problem covers taking search filters from the query string as typed handler parameters, each falling back to a default when the caller leaves it out, and turning away a value of the wrong type.

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

Task Tracker API With Route Groups

STAR
Solving it completes the module
100%1 of 1 solvedeasy
About this challenge

This problem covers mapping the five endpoints of a task tracker in one route group with typed results, so listing can be filtered, creating points at what it made, and updating or deleting something that is not there says so.

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.