coolify icon indicating copy to clipboard operation
coolify copied to clipboard

Feat: API Endpoints for GitHub App Creation, Repository and Branch Management and API Endpoints to Update Service FQDN by UUID

Open xmahbub opened this issue 1 year ago • 4 comments

Changes

  • Added REST API to update application FQDN by service UUID:
    • Endpoint: /api/v1/services/{SERVICE_UUID}/fqdn
    • Payload:
      • fqdn: Comma-separated list of URLs (e.g., https://example.com:8080, https://example2.com:4457)
      • applications_uuid: UUID of the associated application
    • Feature allows updating multiple FQDNs for services.

Add GitHub controller to manage GitHub apps, repositories, and branches

  • New routes for GitHub app management:
    • POST /github-apps: Create a new GitHub app
    • GET /github-apps/{github_app_id}/repositories: Load all repositories for a specific GitHub app
    • GET /github-apps/{github_app_id}/repositories/{owner}/{repo}/branches: Load all branches for a specific repository
  • Applied IgnoreReadOnlyApiToken middleware to all routes

This feature enables users to create GitHub apps, view repositories, and access repository branches.

xmahbub avatar Oct 15 '24 17:10 xmahbub

LGTM+1

lemanschik avatar Dec 17 '24 11:12 lemanschik

This would be extremely useful. What is needed to make that happen? I am gladly helping to get this done.

alexhammerschmied avatar Mar 17 '25 17:03 alexhammerschmied

It was a mistake, sorry. I recreated the next branch and it auto-closed this PR.

andrasbacsai avatar May 09 '25 11:05 andrasbacsai

What's needed to merge this?

sayedhfatimi avatar May 18 '25 02:05 sayedhfatimi

What's needed to merge

LeOndaz avatar Jun 21 '25 08:06 LeOndaz

Just wondering why this PR hasn’t been merged yet — I need this feature for a project and am happy to help if anything’s pending. Let me know! 🙏

Pujan789556 avatar Jul 30 '25 12:07 Pujan789556

Just wondering why this PR hasn’t been merged yet — I need this feature for a project and am happy to help if anything’s pending. Let me know! 🙏

Pujan789556 avatar Aug 21 '25 12:08 Pujan789556

Really hope this will be merged !

benoitpascal avatar Aug 25 '25 17:08 benoitpascal

Sorry for the super late answer.

I removed /api/v1/services/{SERVICE_UUID}/fqdn, because it can be done with PATCH /api/v1/services/{SERVICE_UUID}, so I don't see any value for adding it.

I also modified the Github App endpoints, because it does not make sense to add a half configured Github App through the API. It will be the API version of adding Github Apps manually through the UI.

andrasbacsai avatar Sep 22 '25 12:09 andrasbacsai