Skip to content

Commit

Permalink
chore(release): 1.2.0 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-cli-bot committed Aug 22, 2024
1 parent 04adffe commit 878e28d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# 1.1.0 (2024-08-20)
# [1.2.0](https://github.com/salesforcecli/plugin-api/compare/1.1.0...1.2.0) (2024-08-22)

### Features

- add api request graphql command, UTs, NUTs ([04adffe](https://github.com/salesforcecli/plugin-api/commit/04adffea2543c2a018becacb7b4f22db7313b4b9))

# [1.1.0](https://github.com/salesforcecli/plugin-api/compare/e39c5610c36670bd59d86af4b9f0b23b0a0f6dfe...1.1.0) (2024-08-20)

### Bug Fixes

Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ Execute GraphQL statements

````
USAGE
$ sf api request graphql -o <value> --body file [--json] [--flags-dir <value>] [-S Example: report.xlsx | -i]
$ sf api request graphql -o <value> --body file [--json] [--flags-dir <value>] [--api-version <value>] [-S Example:
report.xlsx | -i]
FLAGS
-S, --stream-to-file=Example: report.xlsx Stream responses to a file.
-i, --include Include the HTTP response status and headers in the output.
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the
`target-org` configuration variable is already set.
--api-version=<value> Override the api version used for api requests made by this command
--body=file (required) File or content with GraphQL statement. Specify "-" to read from
standard input.
Expand All @@ -90,7 +92,7 @@ DESCRIPTION
EXAMPLES
- Runs the graphql query directly via the command line
sf api request graphql --body '{ "query": "query accounts { uiapi { query { Account { edges { node { Id \n Name { value } } } } } } }" }'
sf api request graphql --body "query accounts { uiapi { query { Account { edges { node { Id \n Name { value } } } } } } }"
- Runs a mutation to create an Account, with an `example.txt` file, containing
```text
mutation AccountExample{
Expand All @@ -116,7 +118,7 @@ will create a new account returning specified fields (Id, Name)

```
_See code: [src/commands/api/request/graphql.ts](https://github.com/salesforcecli/plugin-api/blob/v1.1.0/src/commands/api/request/graphql.ts)_
_See code: [src/commands/api/request/graphql.ts](https://github.com/salesforcecli/plugin-api/blob/1.2.0/src/commands/api/request/graphql.ts)_
## `sf api request rest ENDPOINT`
Expand Down Expand Up @@ -172,6 +174,6 @@ $ sf api request rest 'sobjects/account' --body info.json --method POST

```
_See code: [src/commands/api/request/rest.ts](https://github.com/salesforcecli/plugin-api/blob/v1.1.0/src/commands/api/request/rest.ts)_
_See code: [src/commands/api/request/rest.ts](https://github.com/salesforcecli/plugin-api/blob/1.2.0/src/commands/api/request/rest.ts)_
<!-- commandsstop -->
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@salesforce/plugin-api",
"description": "A plugin to call API endpoints via CLI commands",
"version": "1.1.0",
"version": "1.2.0",
"author": "Salesforce",
"bugs": "https://github.com/forcedotcom/cli/issues",
"dependencies": {
Expand Down

0 comments on commit 878e28d

Please sign in to comment.