opensearch-project / opensearch-cli

A full-featured command line interface (CLI) for OpenSearch.
https://opensearch.org/docs/latest/clients/cli/
Apache License 2.0
44 stars 24 forks source link

[BUG] Missing curl patch command #45

Closed mikelorant closed 2 years ago

mikelorant commented 2 years ago

The OpenSearch specification allows for the use of patch and is required for updating role mappings.

An example of the usage can be seen here: https://opensearch.org/docs/latest/security-plugin/access-control/api/#patch-role-mappings

This command is not available with this tool which prevents it being used for this purpose.

# opensearch-cli curl
Use the curl command to execute any REST API calls against the cluster.

Usage:
  opensearch-cli curl [command]

Available Commands:
  delete      Delete command to execute requests against cluster
  get         Get command to execute requests against cluster
  post        Post command to execute requests against cluster
  put         Put command to execute requests against cluster

This command should be added.

mikelorant commented 2 years ago

PR created for this.

https://github.com/opensearch-project/opensearch-cli/pull/46

mikelorant commented 2 years ago

Updated the PR with a fixed integration test.

mikelorant commented 2 years ago

Closing as this has now been merged.