GraphQL

Endpoint: https://www.flowscmc.ro/graphql (GET/POST). Aceleași Bearer + X-Company-Id ca REST.

Interogări disponibile (exemple)

Mutări (exemple)

Mutările pot fi condiționate de flag-ul graphql_mutations_enabled pe companie.

Exemplu

curl -s -X POST https://www.flowscmc.ro/graphql \
  -H "Authorization: Bearer TOKENUL_DVS" \
  -H "X-Company-Id: 1" \
  -H "Content-Type: application/json" \
  -d '{"query":"{ articles(limit: 10) { id article_code description } }"}'

Test rapid: Playground REST → opțiunea POST /graphql. Playground GraphQL complet rămâne în aplicație (autentificat).