Skip to content

fix: migrate API client to REST endpoints#45

Open
jaredmcqueen wants to merge 3 commits into
Dokploy:mainfrom
jaredmcqueen:codex/dokploy-pr40-source-build
Open

fix: migrate API client to REST endpoints#45
jaredmcqueen wants to merge 3 commits into
Dokploy:mainfrom
jaredmcqueen:codex/dokploy-pr40-source-build

Conversation

@jaredmcqueen

Copy link
Copy Markdown

Summary

  • migrate CLI requests from the legacy /trpc transport to Dokploy's REST endpoints under /api
  • pass GET parameters through Axios so values are encoded correctly
  • send POST bodies directly and return REST response payloads without the tRPC envelope
  • add regression coverage for parameterized GET and POST requests

Root cause

The generated commands call apiGet and apiPost, but those helpers still used tRPC URLs and payload envelopes. Current Dokploy servers expose these procedures through REST endpoints, causing parameterized commands such as project one to fail with HTTP 400.

This incorporates and preserves the original commits from #40 by @OskarWiedeweg, then adds encoded query handling and regression tests.

Fixes #39.

Validation

  • generated 544 commands from the current OpenAPI specification
  • TypeScript build completed successfully
  • all 20 tests passed
  • Biome check passed for the changed client and tests
  • verified project all and parameterized project one against a live Dokploy instance

OskarWiedeweg and others added 3 commits July 17, 2026 15:14
@jaredmcqueen
jaredmcqueen marked this pull request as ready for review July 18, 2026 23:45
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.

Getting "Request failed with status code 400" on every project or app request

2 participants