Skip to content

[Web runtime] Add a Swagger UI page for the OpenAPI demo - #1566

Merged
minggangw merged 2 commits into
RobotWebTools:developfrom
minggangw:fix-1564-1
Aug 3, 2026
Merged

[Web runtime] Add a Swagger UI page for the OpenAPI demo#1566
minggangw merged 2 commits into
RobotWebTools:developfrom
minggangw:fix-1564-1

Conversation

@minggangw

@minggangw minggangw commented Aug 3, 2026

Copy link
Copy Markdown
Member

Adds a self-contained Swagger UI viewer and updates documentation to make the rclnodejs-web openapi output immediately usable in the web demo workflow, without introducing new runtime/library dependencies.

Changes:

  • Add demo/web/javascript/swagger-ui.html (and screenshot) to browse a generated openapi.json via Swagger UI from a CDN.
  • Update demo docs (demo/web/javascript/README.md, index.html) to point users to the Swagger UI page and reduce duplicated fetch()/EventSource walkthrough text.
  • Update project docs (README.md, web/README.md) to highlight OpenAPI export and refresh Web-runtime messaging.

Fix: #1564

Copilot AI review requested due to automatic review settings August 3, 2026 06:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a self-contained Swagger UI viewer and updates documentation to make the rclnodejs-web openapi output immediately usable in the web demo workflow, without introducing new runtime/library dependencies.

Changes:

  • Add demo/web/javascript/swagger-ui.html (and screenshot) to browse a generated openapi.json via Swagger UI from a CDN.
  • Update demo docs (demo/web/javascript/README.md, index.html) to point users to the Swagger UI page and reduce duplicated fetch()/EventSource walkthrough text.
  • Update project docs (README.md, web/README.md) to highlight OpenAPI export and refresh Web-runtime messaging.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
web/README.md Documents OpenAPI export and updates the web-runtime tagline accordingly.
README.md Renames the web section and adds a brief OpenAPI export mention; condenses Observable Subscriptions section.
demo/web/javascript/web.json Documents http.host and updates usage notes for running the web CLI from the demo.
demo/web/javascript/swagger-ui.html New Swagger UI page that loads ./openapi.json using CDN-hosted Swagger UI assets.
demo/web/javascript/README.md Adds an “OpenAPI — no server required” walkthrough and trims duplicated HTTP/SSE browser examples.
demo/web/javascript/index.html Adds a footer note linking to the new Swagger UI page.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -1,11 +1,12 @@
{
"$comment": "Sample rclnodejs/web config consumed by `npx -p rclnodejs rclnodejs-web web.json` (the `-p rclnodejs` form works even when rclnodejs isn't already installed in the current project). Every key is optional; the defaults shown match the CLI defaults.",
"$comment": "Sample rclnodejs/web config consumed by `npx rclnodejs-web web.json` from a project that has rclnodejs installed. Inside a checkout of the rclnodejs repo itself, run `node ../../../bin/rclnodejs-web.js web.json` instead — npx resolves `rclnodejs` against the enclosing package.json, which *is* rclnodejs here, so it finds no bin to run. Every key is optional; the defaults shown match the CLI defaults.",
@coveralls

coveralls commented Aug 3, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 91.122% (+0.02%) from 91.103% — minggangw:fix-1564-1 into RobotWebTools:develop

@minggangw
minggangw merged commit 9001d81 into RobotWebTools:develop Aug 3, 2026
20 checks passed
@minggangw minggangw mentioned this pull request Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenAPI support

3 participants