Skip to content

feat(api): Service Application Management API#9249

Open
muslimanim wants to merge 3 commits intocoollabsio:nextfrom
muslimanim:next
Open

feat(api): Service Application Management API#9249
muslimanim wants to merge 3 commits intocoollabsio:nextfrom
muslimanim:next

Conversation

@muslimanim
Copy link
Copy Markdown

Changes

The existing /api/v1/applications/{uuid}API targets Application resources (standalone apps and the main service app). For a Service with multiple compose applications (ServiceApplication rows), there was no API to Stream or fetch logs for a single service application, Restart or deploy (start) one compose service without treating the whole stack like a generic application UUID (which does not map cleanly to per-service containers).

Issues

Category

  • New feature

Preview

GET /api/v1/services/{service-uuid}/applications
GET /api/v1/services/{service-uuid}/applications/{app-uuid}
PATCH /api/v1/services/{service-uuid}/applications/{app-uuid}
PATCH /api/v1/services/{service-uuid}/applications/{app-uuid}?force_domain_override=true
POST /api/v1/services/{service-uuid}/applications/{app-uuid}/logs?lines=100
POST /api/v1/services/{service-uuid}/applications/{app-uuid}/start?latest=1&force=1
POST /api/v1/services/{service-uuid}/applications/{app-uuid}/restart
POST /api/v1/services/{service-uuid}/applications/{app-uuid}/stop

Allowed fields in PATCH body: url, human_name, description, image, exclude_from_status, is_log_drain_enabled, is_gzip_enabled, is_stripprefix_enabled

AI Assistance

  • AI was NOT used to create this PR
  • AI was used (please describe below)

If AI was used:

  • Tools used: Cursor
  • How extensively: All the code changes with manual check and small fixes

Testing

docker exec coolify php artisan test tests/Feature/ServiceApplicationsApiTest.php

Contributor Agreement

Important

  • I have read and understood the contributor guidelines. If I have failed to follow any guideline, I understand that this PR may be closed without review.
  • I have searched existing issues and pull requests (including closed ones) to ensure this isn't a duplicate.
  • I have tested all the changes thoroughly with a local development instance of Coolify and I am confident that they will work as expected when a maintainer tests them.

@muslimanim muslimanim marked this pull request as ready for review March 29, 2026 03:36
@muslimanim muslimanim changed the title feat(api): add service-applications API to manage service applications feat(api): Service Application Management API Mar 29, 2026
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.

1 participant