feat: integrate Node.js Hosting public API with new CLI#78
Merged
Conversation
aosypenko-godaddy
approved these changes
Jul 6, 2026
jpage-godaddy
approved these changes
Jul 6, 2026
There was a problem hiding this comment.
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
hostingmodule with anodejscommand 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary