Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apicurio CLI #859

Merged
merged 15 commits into from
Aug 17, 2021
Merged

Apicurio CLI #859

merged 15 commits into from
Aug 17, 2021

Conversation

wtrocki
Copy link
Collaborator

@wtrocki wtrocki commented Jul 30, 2021

Description

Set of commands to interact with service registry dataplane:

Available Commands:
  create      Creates new artifact from file or standard input
  delete      Deletes all of the artifacts that exist in a given group
  download    Download artifacts from registry by using global identifiers
  get         Get artifact by id and group
  list        List artifacts
  metadata    Get artifact metadata
  update      Update artifact
  versions    Get latest artifact versions by id and group

Verification

Create artifact in my-group from schema.json file

rhoas service-registry artifact create --artifact=my-artifact --group=my-group artifact.json

Get artifact content

rhoas service-registry artifact get --artifact=my-artifact --group=my-group file.json

Delete artifact

rhoas service-registry artifact delete --artifact=my-artifact

Get artifact metadata

rhoas service-registry artifact metadata --artifact=my-artifact --group=my-group

Update artifact

rhoas service-registry artifact update --artifact=my-artifact artifact-new.json

List Artifacts

rhoas service-registry artifact list --group=my-group --limit=10 page=1

View artifact versions

rhoas service-registry artifact versions --artifact=my-artifact --group=my-group

@wtrocki
Copy link
Collaborator Author

wtrocki commented Jul 30, 2021

CC @ankithans

@wtrocki
Copy link
Collaborator Author

wtrocki commented Aug 9, 2021

Looking for early feedback about dataplane crud commands.
More into UX and potential issues than code as I still did not i18n strings.

Shared docs on channel for more context

@wtrocki
Copy link
Collaborator Author

wtrocki commented Aug 9, 2021

Requirements chaged for some commands. Rewriting

pkg/cmd/registry/artifacts/crud/create/create.go Outdated Show resolved Hide resolved
pkg/cmd/registry/artifacts/crud/create/create.go Outdated Show resolved Hide resolved
pkg/cmd/registry/artifacts/artifacts.go Outdated Show resolved Hide resolved
pkg/cmd/registry/artifacts/crud/create/create.go Outdated Show resolved Hide resolved
@wtrocki wtrocki marked this pull request as ready for review August 11, 2021 10:33
@wtrocki wtrocki changed the title WIP: Apicurio CLI Apicurio CLI Aug 11, 2021
@wtrocki
Copy link
Collaborator Author

wtrocki commented Aug 12, 2021

Awesome reviews. I will refine things little bit and ping you next week for final check

@wtrocki wtrocki requested a review from craicoverflow August 17, 2021 11:12
@wtrocki wtrocki merged commit 20d25bd into main Aug 17, 2021
@wtrocki wtrocki deleted the apicurio-cli branch August 17, 2021 15:49
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.

3 participants