/dds-api-docs

Documentation of the Dash Enterprise GraphQL API

Primary LanguagePythonMIT LicenseMIT

Dash Enterprise API Docs

These docs contain the reference DDS GraphQL API (found in the .md files), as well as runnable Python examples for each query and mutation.

Maintained by Plotly

Running Python Examples

  1. pipenv install --dev

  2. pipenv shell

  3. Update the variables at the top of dds.py to match your DDS settings.

    export DDS_DOMAIN_NAME="dash.example.com"
    export DDS_USERNAME="username"
    export DDS_API_KEY="api_key"
  4. Run python <path/to/example.py>

    • Example: python queries/apps/by_page.py

Auto-generating Reference Docs

  1. Export the DDS_DOMAIN_NAME environment variable
  2. Run npm install
  3. Run npm run generate to automatically generate the markdown reference files

Note: npm run generate will run the genReferenceDocs.js script for you.