Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/demarches-simplifiees/ds-api-client


https://github.com/demarches-simplifiees/ds-api-client

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# ds-api-client



Bun


Static Badge

## Step 1: Download (Linux or MacOS)

[download](https://github.com/demarches-simplifiees/ds-api-client/releases/latest)

## Step 2: Provide DS token
```bash
echo "GRAPHQL_TOKEN=" >> .env
```

## Step 3: Run
```bash
ds-api-client help dossier
```
```
Usage: ds-api-client dossier [options]

Display or download a dossier

Arguments:
dossierNumber Dossier number

Options:
-d, --download Download files
-t, --table Show dossier details
-j, --json Print dossier as JSON
--no-color No colors
-P, --parallel Download in parallel files (default: 20)
-o, --outdir Output directory (default: "./data")
-M, --messages Download dossier messages
-A, --avis Download dossier avis
-G, --geo Download geo files
--token API token
-h, --help display help for command
```

```bash
ds-api-client help dossiers
```
```
Usage: ds-api-client dossiers [options]

List or download dossiers from a demarche

Arguments:
demarcheNumber Demarche number

Options:
-f, --first Take first dossiers
-l, --last Take last dossiers
-a, --after After cursor
-b, --before Before cursor
-s, --since Dossiers updated since
-d, --download Download files
-t, --table Show dossier details
-p, --paginate Follow pagination
-P, --parallel Download in parallel files (default: 20)
-o, --outdir Output directory (default: "./data")
-c, --clean Clean output directory
-M, --messages Download dossier messages
-A, --avis Download dossier avis
-G, --geo Download geo files
--token API token
-h, --help display help for command
```

```bash
ds-api-client help demarche
```
```
Usage: ds-api-client demarche [options]

Get demarche schema

Arguments:
demarcheNumber Demarche number

Options:
--no-color No colors
-j, --json Print schema as JSON
--token API token
-h, --help display help for command
```