Skip to content

docs(examples): add Express WorkPaper route smoke #273

@gregkonush

Description

@gregkonush

Outcome

Add a copy-paste Express adapter smoke example for the serverless WorkPaper API route. The example should adapt an Express request to a web-standard Request, call the shared WorkPaper handler, and copy the returned Response back to Express.

Likely files

  • docs/serverless-workpaper-api-route.md
  • examples/serverless-workpaper-api/README.md
  • optionally examples/serverless-workpaper-api/express-route.ts

Suggested approach

Use the existing Express section in the serverless route docs as the source. Keep the snippet narrow: JSON body parsing, method/path handling, call handleWorkPaperRequest(), return status/body/headers. Avoid building a full Express app unless it stays tiny.

Acceptance proof

  • The docs or example include the adapter code and a curl request that returns calculated WorkPaper output.
  • The example explains the one translation step from Express request/response to Fetch Request/Response.
  • A local check such as pnpm docs:discovery:check still passes.

Scope check

  • Reviewable in one sitting.
  • One clear validation command or artifact.
  • No broad architecture knowledge required.
  • Should stay open for a new contributor unless it becomes urgent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationfirst-timers-onlyReserved for someone making their first contribution to this projectgood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions