Stu Mason
Stu Mason

Activity

Pull Request Merged

PR #120 merged: fix: correct API path for listing application deployments

Summary

  • Fixed listApplicationDeployments using wrong API path /applications/{uuid}/deployments (returns 404)
  • Changed to correct path /deployments/applications/{uuid} per the Coolify OpenAPI spec (operationId: list-deployments-by-app-uuid, line 4166 in docs/coolify-openapi.yaml)
  • Updated corresponding test assertion

How to reproduce

// This returns 404 with the current code:
const deployments = await client.listApplicationDeployments('your-app-uuid');

The correct Coolify v4 endpoint is GET /api/v1/deployments/applications/{uuid} (with optional skip and take query params), not GET /api/v1/applications/{uuid}/deployments.

Test plan

  • Updated test in coolify-client.test.ts to expect correct URL
  • All 200 tests pass
  • Verified against live Coolify v4 instance (the correct path returns deployment history, the old path returns 404)
+2
additions
-2
deletions
2
files changed