Procházet zdrojové kódy

docs(examples): fix postman README admin-token command

The console dispatcher in api/bin/console exposes the command as
auth:create-token --kind=admin --role=…, not tokens:create. Update the
quickstart so the copy-pasted command actually works.
chiappa před 1 týdnem
rodič
revize
629c8955c2
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      examples/postman/README.md

+ 2 - 2
examples/postman/README.md

@@ -14,10 +14,10 @@ The collection mirrors the spec at `/api/v1/openapi.yaml` and the routes registe
 3. Mint an admin token from the host (no Postman variable needed yet):
 
    ```bash
-   docker compose exec api php bin/console tokens:create admin --role=admin
+   docker compose exec api php bin/console auth:create-token --kind=admin --role=admin
    ```
 
-   Paste the printed `irdb_adm_…` value into the environment's `adminToken` variable.
+   The raw `irdb_adm_…` token is printed to stdout and shown only once. Paste it into the environment's `adminToken` variable. Available roles are `viewer`, `operator`, `admin`. Run `docker compose exec api php bin/console --help` to see the full set of console commands (`db:migrate`, `auth:bootstrap-service-token`, `jobs:run`, `jobs:status`, `scores:rebuild`).
 4. Run **Health & Docs → GET /healthz**. You should see `{ "status": "ok", … }`.
 5. Run **Admin — Identity → GET /api/v1/admin/me**. You should get back your token's role.