microcks / microcks/microcks-cli
Feature Request: Add `delete` command to CLI to remove APIs from Microcks
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 52
- Fork
- 68
- Merge medio
- 6h 54m
- PR unite (30g)
- 10
Descrizione
Description :
Currently, the Microcks CLI allows users to import and test APIs, but there is no native way to delete an API directly from the command line. This makes it difficult to maintain clean environments, especially in CI/CD pipelines where we often want to clean up older, unused iterations of an API or tear down temporary mock services.
Describe the solution you'd like
I would like to see a new microcks delete command added to the CLI.
The command should:
- Take the API name and version as a single argument (e.g.,
<serviceName:version>). - Look up the internal service ID using the Microcks REST API.
- Safely delete the target service.
- Return a clear success or failure message.
Proposed Usage:
microcks delete "MyService:1.0"
Describe alternatives you've considered
The only current alternative is to manually write curl scripts to first query the /api/services/search endpoint to find the system id and then issue a DELETE request, or to manage deletions manually through the Web UI. Having this integrated into the CLI is much cleaner.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia tracciando i comandi CLI esistenti e l’utilizzo della Microcks REST API, quindi esamina il comportamento dell’endpoint /api/services/search. Il lavoro è completo quando microcks delete "MyService:1.0" risolve il servizio e lo rimuove in modo sicuro, con un output chiaro in caso di successo o fallimento; verifica il comando con un servizio temporaneo e i test CLI pertinenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- go
- Ambito
- api, cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100