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

v2.3.0 #68

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,19 @@ make a manual API request

```
USAGE
$ heroku api METHOD [PATH]
$ heroku api METHOD [PATH] [-v <value>] [-a <value>] [-b <value>]

ARGUMENTS
METHOD GET, POST, PUT, PATCH, or DELETE
PATH endpoint to call

OPTIONS
-a, --accept-inclusion=accept-inclusion Accept-Inclusion header to use
-b, --body=body JSON input body
-v, --version=version version to use (e.g. 2, 3, or 3.variant)
FLAGS
-a, --accept-inclusion=<value> Accept-Inclusion header to use
-b, --body=<value> JSON input body
-v, --version=<value> version to use (e.g. 2, 3, or 3.variant)

DESCRIPTION
make a manual API request
The api command is a convenient but low-level way to send requests
to the Heroku API. It sends an HTTP request to the Heroku API
using the given method on the given path. For methods PUT, PATCH,
Expand All @@ -44,21 +45,19 @@ DESCRIPTION
Method name input will be upcased, so both 'heroku api GET /apps' and
'heroku api get /apps' are valid commands.

EXAMPLE
EXAMPLES
$ heroku api GET /apps/myapp
{
created_at: "2011-11-11T04:17:13-00:00",
id: "12345678-9abc-def0-1234-456789012345",
name: "myapp",
created_at: "2011-11-11T04:17:13-00:00",
id: "12345678-9abc-def0-1234-456789012345",
name: "myapp",
}

$ heroku api PATCH /apps/myapp/config-vars --body '{"FOO": "bar"}'
{
FOO: "bar"
FOO: "bar"
}

$ export HEROKU_HEADERS
$ HEROKU_HEADERS='{
"Content-Type": "application/x-www-form-urlencoded",
Expand All @@ -68,5 +67,5 @@ EXAMPLE
2
```

_See code: [src/commands/api.ts](https://github.com/heroku/heroku-api-plugin/blob/v2.2.0/src/commands/api.ts)_
_See code: [src/commands/api.ts](https://github.com/heroku/heroku-api-plugin/blob/v2.3.0/src/commands/api.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": "@heroku-cli/plugin-api",
"description": "access the Heroku API directly",
"version": "2.2.0",
"version": "2.3.0",
"author": "Heroku",
"bugs": {
"url": "https://github.com/heroku/heroku-api-plugin/issues"
Expand Down
Loading