Quickstart

    Configure your token and call the coverage status endpoint to verify connectivity.

    1) Environment

    Set the following variables:

    export NODURA_BASE_URL="http://localhost:3000"
    export NODURA_API_TOKEN="nd_ci_<publicId>.<secret>"
    export NODURA_PROJECT_ID="11111111-1111-1111-1111-111111111111"

    2) Call coverage status

    Choose a language and paste the snippet:

    Bash

    curl -H "Authorization: Bearer $NODURA_API_TOKEN"  
      "$NODURA_BASE_URL/api/coverage/project/$NODURA_PROJECT_ID/status"

    Node.js

    node platform/examples/js/coverage-status.js

    Python

    python3 platform/examples/python/coverage_status.py

    3) Expected result

    JSON with pass/fail and blocking fields. 401/403 indicates auth issues.

    Next

    Explore more runnable scripts on the Examples page.