Skip to content

docs: align user guides with service routes#10

Merged
guoqqqi merged 5 commits intomasterfrom
codex/docs-current-service-model
Apr 30, 2026
Merged

docs: align user guides with service routes#10
guoqqqi merged 5 commits intomasterfrom
codex/docs-current-service-model

Conversation

@guoqqqi
Copy link
Copy Markdown
Contributor

@guoqqqi guoqqqi commented Apr 28, 2026

Summary

  • Update route and getting-started guides to create a service before creating routes.
  • Prefer route paths plus service_id, and document route list --service-id for current EE route listing.
  • Remove unsupported/stale a7 portal roadmap reference and replace upstream export example with service export.
  • Refresh the golden route example to use current route fields.

Validation

  • go test ./...
  • git diff --check

Copilot AI review requested due to automatic review settings April 28, 2026 16:47
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 28, 2026

Warning

Rate limit exceeded

@guoqqqi has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 55 minutes and 47 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: dc0fcb62-2e6b-40a3-ab79-6f04305e082b

📥 Commits

Reviewing files that changed from the base of the PR and between 9a636fd and 587d668.

📒 Files selected for processing (4)
  • docs/golden-example.md
  • docs/roadmap.md
  • docs/user-guide/getting-started.md
  • docs/user-guide/route.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/docs-current-service-model

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 55 minutes and 47 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates CLI documentation to reflect the recommended workflow of creating a service first and then creating routes that reference it, aligning examples with current API7 EE route/service expectations.

Changes:

  • Reworks route docs and getting-started to prefer paths + service_id (service-first flow).
  • Updates examples to use upstream nodes array format and documents route list --service-id usage.
  • Removes stale roadmap references and refreshes the “golden example” route schema snippet/output.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
docs/user-guide/route.md Updates route listing guidance and route payload examples to prefer paths + service_id.
docs/user-guide/getting-started.md Switches the quickstart to create a service first, then create a route bound to that service; updates export example to services.
docs/roadmap.md Removes/renames stale “portal” roadmap item and updates the PR-36 label.
docs/golden-example.md Refreshes the documented Route struct and example JSON to use paths + service_id.

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

Comment thread docs/golden-example.md
Hosts []string `json:"hosts,omitempty"`
Priority int `json:"priority"`
Status int `json:"status"`
ServiceID string `json:"service_id,omitempty"`
Comment thread docs/user-guide/route.md Outdated
| `methods` | array | HTTP methods allowed (e.g., ["GET", "POST"]) |
| `upstream` | object | Inline upstream configuration |
| `upstream_id` | string | Reference to an existing upstream ID |
| `service_id` | string | Reference to the service that owns the upstream configuration |
Copilot AI review requested due to automatic review settings April 29, 2026 13:55
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates CLI documentation to reflect the current API7 EE runtime workflow where routes are typically managed in the context of services, and refreshes examples to use current route/service payload fields.

Changes:

  • Update route and getting-started guides to create a service before creating routes, and prefer paths + service_id.
  • Document a7 route list --service-id and remove stale/unsupported flags and roadmap references.
  • Refresh the “golden example” route schema and example response to include paths/service_id.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
docs/user-guide/route.md Updates route listing/create docs to emphasize service scoping and paths + service_id.
docs/user-guide/getting-started.md Reworks tutorial to create a service first, then a route referencing it; updates export example.
docs/roadmap.md Removes a7 portal mention and adjusts PR-36 roadmap wording.
docs/golden-example.md Updates example Route schema/printing and example JSON to reflect current route fields.

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

Comment thread docs/user-guide/route.md Outdated
Comment on lines +11 to +13
Lists routes in the specified gateway group. In current API7 EE environments,
routes are scoped by service, so prefer passing `--service-id` when listing
routes for a known service.
Comment thread docs/golden-example.md Outdated
Comment on lines +364 to +369
fmt.Fprintln(w, "ID\tNAME\tURIS\tSTATUS\tSERVICE_ID\tUPSTREAM_ID")

for _, r := range routes {
uris := strings.Join(r.URIs, ",")
status := fmt.Sprintf("%d", r.Status)
upstream := "N/A"
if r.UpstreamID != nil {
upstream = *r.UpstreamID
service := r.ServiceID
Comment thread docs/golden-example.md
Comment on lines +519 to +522
"paths": ["/api/v1/users"],
"methods": ["GET", "POST"],
"status": 1,
"upstream_id": "u1"
"service_id": "svc-users"
@guoqqqi guoqqqi merged commit fa23d82 into master Apr 30, 2026
5 of 6 checks passed
@guoqqqi guoqqqi deleted the codex/docs-current-service-model branch April 30, 2026 01:14
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.

2 participants