Run artifact

workspace/targets/ReadingList/blueprint/SCREEN-ReadingList.md

SCREEN: Reading List

FieldValue
Version20261014 V1
DescriptionThe reading list page where a reader adds, views, and removes books.
Depends OnFEATURE-AddBook.md, FEATURE-ListBooks.md, FEATURE-RemoveBook.md
ProvidesGET /
ConsumesPOST /books, GET /books, DELETE /books/{id}
Route/
Parent—
Main MenuReading List (1)
Sub Menu—
Tab Order—

Purpose

The single page of the application. A reader submits a title and author, sees the ordered list, and removes a book.

Layout

Interactions

Database Interface

Programmatic Acceptance

=== AC screen-get-root ===
Intent: GET / returns status 200 with an HTML page.

from app_server.testing import web_client

client = web_client() response = client.get("/") assert response.status_code == 200 assert response.mimetype == "text/html" === END AC screen-get-root ===

=== AC screen-add-list-remove ===
Intent: The routes the page calls add, list, and remove a book, and an unknown id returns 404.

import uuid from app_server.testing import web_client

client = web_client() title = uuid.uuid4().hex author = uuid.uuid4().hex added = client.post("/books", json={"title": title, "author": author}) assert added.status_code == 201 book_id = added.get_json()["id"] listing = client.get("/books") assert listing.status_code == 200 assert book_id in [book["id"] for book in listing.get_json()] removed = client.delete(f"/books/{book_id}") assert removed.status_code == 204 assert client.delete("/books/999999999").status_code == 404 === END AC screen-add-list-remove ===

User Acceptance

Guardrails