Next
0 / 3
Module VC-04VIBECODE

Normalize an API Route Table

VIBECODE โ€ข Vibe Coding: AI-First Software Delivery

Browser-only practice

Problem Statement

Stage: Build the First Vertical Slice

The first vertical slice needs a small, auditable route contract.

Deliverable

A sorted normalized route table.

Input and output contract

Read METHOD path handler records, uppercase methods, normalize leading slash, and sort by path then method.

Acceptance criteria

  1. Preserve handler names.
  2. Add a missing leading slash.
  3. Print METHOD path -> handler.

Suggested vibe loop

Read AGENTS.md, connect your Ollama or OpenAI-compatible provider in the browser, and ask the agent to restate the contract and make one small verifiable change. Watch edits stream into app.py while the editor is locked, then review the result and run the visible example. Keep the checkpoint when the evidence is correct or use Undo to restore it. The browser-client agent does not require an administrator gateway or API key.

Constraints

Use Python 3 standard library only. Read and follow AGENTS.md, keep main.py as the entry point, and implement solve(raw) in app.py.

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
post tasks create_task
GET /tasks list_tasks
delete tasks/{id} delete_task
GET /tasks -> list_tasks
POST /tasks -> create_task
DELETE /tasks/{id} -> delete_task
Normalizes a vertical slice.

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings