Skip to content

Commit

Permalink
Updating astra-httpie
Browse files Browse the repository at this point in the history
  • Loading branch information
synedra committed Feb 27, 2023
1 parent b5944d4 commit c382587
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/pages/astra/astra-httpie.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ If you want to use it on your own system, follow these steps:
## Install the python library and httpie

```
pip install httpie-astra
pip3 install httpie-astra
```

## Setup your Astra account
Expand All @@ -32,7 +32,7 @@ As an example, for the example in the Katapod example, you could use "stargate"
```
astra db create <database>
astra db create-dotenv -k <keyspace> <database>
echo "[default]" > ~/.astrarc
echo "[stargate]" >> ~/.astrarc
cat .env >> ~/.astrarc
```

Expand All @@ -47,15 +47,15 @@ You can create a configuration file in ~/.config/httpie/config.json. Adding thi
{
"default_options": [
"--auth-type=astra",
"--auth=default:"
"--auth=stargate:"
]
}
```

This means that instead of using this command:

```
http --auth-type astra -a default: :/rest/v1/keyspaces
http --auth-type astra -a stargate: :/rest/v1/keyspaces
```

You can use this command:
Expand Down

0 comments on commit c382587

Please sign in to comment.