microcks / microcks/microcks-cli
Feature Request: Add `delete` command to CLI to remove APIs from Microcks
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 52
- Forks
- 68
- Ø Merge
- 6 Std. 54 Min.
- Gemergte PRs (30 T.)
- 10
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die bestehenden CLI-Befehle und die Verwendung der Microcks REST API nachzuverfolgen, und untersuche anschließend das Verhalten des Endpunkts /api/services/search. Als erledigt gilt, dass microcks delete "MyService:1.0" den Service auflöst und ihn sicher entfernt, mit einer eindeutigen Erfolgs- oder Fehlermeldung; überprüfe den Befehl anhand eines temporären Service und relevanter CLI-Tests.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go
- Bereich
- api, cli
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 55/100