Skip to content

feat: integrate Node.js Hosting public API with new CLI#78

Merged
jhenderson1-godaddy merged 2 commits into
rust-portfrom
feat/integrate-nodejs-hosting
Jul 6, 2026
Merged

feat: integrate Node.js Hosting public API with new CLI#78
jhenderson1-godaddy merged 2 commits into
rust-portfrom
feat/integrate-nodejs-hosting

Conversation

@jhenderson1-godaddy

Copy link
Copy Markdown
Collaborator

Summary

  • Adds new command group for the Node.js Hosting API
  • Add script to regenerate the OpenAPI spec for Node.js Hosting
  • Adds HTTP client to interact with the Node.js Hosting API
  • Adds test suites to cover new behaviour

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

This PR integrates the Node.js Hosting Public API into the Rust CLI by adding a new hosting nodejs command group backed by a dedicated HTTP client, and by vendoring/embedding the API’s OpenAPI spec into the CLI’s API catalog so it’s discoverable via the API explorer workflow.

Changes:

  • Added a new hosting module with a nodejs command group for managing Node.js PaaS apps (apps, deployments, source upload, secrets, logs).
  • Introduced a Node.js Hosting REST client (reqwest) plus tests, and added OAuth scope constants for the new API.
  • Vendored the OpenAPI spec and wired it into the API catalog generation + API explorer (including a helper script to refresh the spec).

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
rust/tools/generate-api-catalog/src/main.rs Adds support for including a locally vendored Node.js Hosting OpenAPI spec when generating the embedded API catalog.
rust/src/main.rs Registers the new hosting module and exposes it in the CLI help.
rust/src/hosting/nodejs/scopes.rs Defines OAuth scope constants used by Node.js Hosting commands.
rust/src/hosting/nodejs/mod.rs Implements the hosting nodejs command group and subcommands (apps, jobs, deployments, source, secrets, logs).
rust/src/hosting/nodejs/client.rs Adds a reqwest-based HTTP client for the Node.js Hosting API plus httpmock tests.
rust/src/hosting/mod.rs Adds the top-level hosting module and nests the nodejs group.
rust/src/api_explorer/mod.rs Embeds the generated hosting-nodejs API catalog JSON for API explorer discovery.
rust/scripts/regenerate-hosting-spec.sh Script to refresh the vendored hosting OpenAPI spec and regenerate the API catalog.
rust/schemas/openapi/hosting-nodejs-public-v1.yaml Vendored Node.js Hosting OpenAPI spec source.
rust/schemas/api/manifest.json Adds the hosting-nodejs domain entry to the embedded API catalog manifest.
rust/schemas/api/hosting-nodejs.json Adds the generated API catalog JSON for Node.js Hosting.
rust/Cargo.toml Enables reqwest multipart support needed for zip uploads.
CLAUDE.md Documents the new regeneration script and new module layout.

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

Comment thread rust/src/hosting/nodejs/mod.rs
Comment thread rust/src/hosting/nodejs/mod.rs
Comment thread rust/src/hosting/nodejs/mod.rs
Comment thread rust/src/hosting/nodejs/mod.rs
Comment thread rust/src/hosting/nodejs/mod.rs
Comment thread rust/src/hosting/nodejs/mod.rs
Comment thread rust/src/hosting/nodejs/client.rs
Comment thread rust/src/hosting/nodejs/mod.rs Outdated
@jhenderson1-godaddy jhenderson1-godaddy merged commit 8877abe into rust-port Jul 6, 2026
1 check passed
@jpage-godaddy jpage-godaddy deleted the feat/integrate-nodejs-hosting branch July 6, 2026 23:46
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.

4 participants