Phase 1 · Foundations / WEEK 05 OF 26

ASP.NET Core APIs

Learn how to build professional REST APIs using ASP.NET Core. By the end of the week, you'll create and document APIs that are ready to host AI capabilities in later weeks.

WEEKLY PROGRESS0 / 7
0% complete
All weeksCheck off each day to save your progress.
YOUR WEEKLY PLAN

The daily plan

01

Monday

Read

Focus

  • What is a REST API?
  • API Request / Response lifecycle
  • Controller-based architecture
  • ASP.NET Core project structure

Exercise

  • dotnet new webapi -n Week5-WebApi

Deliverable

  • Web API project created
  • Application runs locally

Estimated Time

  • 90 Minutes
02

Tuesday

Read

Focus

  • Controller classes
  • HTTP methods
  • Route attributes
  • API endpoints

Coding Exercise

  • BooksController
  • GET /books
  • GET /books/{id}

Deliverable

  • First custom controller
  • Two working endpoints
03

Wednesday

Focus

  • POST requests
  • PUT requests
  • DELETE requests
  • Resource updates

Exercise

  • POST /books
  • PUT /books/{id}
  • DELETE /books/{id}

Deliverable

  • Full CRUD API
04

Thursday

Focus

  • IActionResult
  • ActionResult<T>
  • Status codes
  • Error responses

Exercise

  • NotFound()
  • BadRequest()
  • CreatedAtAction()

Deliverable

  • Proper HTTP responses
  • Error handling
05

Friday

Focus

  • OpenAPI
  • API documentation
  • Endpoint testing
  • API discoverability

Exercise

  • /swagger

Deliverable

  • Fully documented API
  • Screenshots for README
06

Saturday

Project Day

Build

  • Prompt Completion API

Required Endpoints

  • POST /api/prompts
  • GET /api/prompts/history

Focus

  • API design
  • Clean architecture
  • Models
  • Controllers
  • Validation

Stretch Goals

  • Prompt history storage
  • Logging
  • Request tracking

Deliverable

  • Prompt Completion API
07

Sunday

Review

Architecture Diagram

  • Client
  • ↓
  • API
  • ↓
  • Controller
  • ↓
  • Service
  • ↓
  • Data Store

Review Questions

  • 1. What is REST?
  • 2. What is the role of a controller?
  • 3. What is the difference between GET and POST?
  • 4. Why is Swagger useful?
  • 5. How would an AI model fit into this architecture?

Weekly Deliverables

  • ASP.NET Core Web API
  • BooksController
  • CRUD Operations
  • Swagger Documentation
  • Prompt Completion API
  • Updated GitHub Repository
WEEK 05 OUTCOMES

Success criteria

Track the skills and outcomes this week is designed to build.

WEEK 05 CHECKPOINT

Milestones

Mark the portfolio artifacts and deliverables you’ve completed.

YOUR WORKSPACE

Week notes

Capture questions, decisions, or next steps as you work.

Saved in this browser

Weekly activities adapted from the Week 5 workbook. Learning resource links open in a new tab.