Skip to content

feat: add services list command#302

Open
mugiwaraluffy56 wants to merge 1 commit intomicrocks:masterfrom
mugiwaraluffy56:feat/services-list-command
Open

feat: add services list command#302
mugiwaraluffy56 wants to merge 1 commit intomicrocks:masterfrom
mugiwaraluffy56:feat/services-list-command

Conversation

@mugiwaraluffy56
Copy link
Copy Markdown
Contributor

@mugiwaraluffy56 mugiwaraluffy56 commented May 6, 2026

Closes #278.

Right now if you want to know what services are loaded in Microcks, you have to open the browser. There is no CLI equivalent of just asking "what do I have". This PR adds that.

microcks services list calls GET /api/services and prints a name/version/type table. It works the same way as microcks test for auth: you can either pass --microcksURL with keycloak credentials directly, or just run it with a saved context from microcks login.

Pagination is there if you need it via --page and --size (defaults to page 0, 20 per page).

I also added ServiceSummary and GetServices to the MicrocksClient interface so the VS Code extension work in #255 can reuse the same client method and DTO without duplicating anything.

Tests cover the happy path, empty list, pagination query params forwarded correctly, and the error path when the API returns invalid JSON. All existing tests still pass.

demo:

microcks-services-command-demo.mov

Signed-off-by: puneeth_aditya_5656 <myakampuneeth@gmail.com>
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.

feat: add services list command

1 participant