Skip to content

Web: Extend script/examples-web-smoke.sh for 003-MiniWebApp routes #461

@PurHur

Description

@PurHur

Problem

#298 ✅ added script/examples-web-smoke.sh for 001-SimpleWeb, 002-StaticWeb, and 004-ApiJson. There is no automated curl harness for the north-star app examples/003-MiniWebApp/ once VM serve is unblocked (#67).

Goal

Extend script/examples-web-smoke.sh (or a subcommand) to curl MiniWebApp routes:

Request Expected needle
GET /?route=home home template marker
GET /?route=hello&name=Dev greeting
POST /?route=contact thank-you (#248)
GET /?route=api/status JSON (#61)

Later: PATH_INFO URLs when #210 migrates off ?route=; AOT mode via phpc serve --aot when #454 flips green.

Scope

Acceptance criteria

./script/examples-web-smoke.sh --miniwebapp   # or default when lint green

Returns 0 against phpc serve 127.0.0.1:8080 examples/003-MiniWebApp after #67.

Verification (local / Docker only)

docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev ./script/examples-web-smoke.sh

No .github/workflows/* changes.

Dependencies

Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions