anomaly / anomaly/gallagher

Create a `CLI` to interact with Gallagher Command Centre

Aperta
#13 4 commenti 0 reazioni 1 assegnatario Rivendicata da @devraj Vedi su GitHub
cli documentation
Lingua principale
Python
Stelle
17
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

While building the API, I found myself constantly making http requests to test payloads. I have also been moving a lot of my workloads to the command line for services like `stripe` or `github` via their CLI.

I also have a set of `httpie` based payloads that I use to support some of our clients e.g:

```
echo -n '
{
"accessGroups": {
"add": [{
"accessGroup": {
"href": "https://commandcentre-api-au.security.gallagher.cloud/api/access_groups/1052"
},
"from": "2023-04-11T10:30:00Z",
"until": "2023-05-11T10:30:00Z"
}]
}
}' | http patch https://commandcentre-api-au.security.gallagher.cloud/api/cardholders/4149 "Authorization: GGL-API-KEY $GH_API_KEY"
```

> the above adds an access group to a cardholder

The proposal is to build upon the REST API client and provide a cli to interact with the command centre to perform various operations.

A sample of what the user would be able to do would look like:

```
gl cardholder search devraj
```

or

```
gl cardholder get 3222
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.