Skip to content

Commit a953b77

Browse files
committed
Website/graphql-api: silent curl progress
1 parent bab39ac commit a953b77

18 files changed

+18
-18
lines changed

website/docs/developers/scripts/graphql-api/queries/curl/account-balance.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1010
QUERY=$(< "$SCRIPT_DIR/../query/account-balance.graphql")
1111
VARIABLES='{ "publicKey": "B62qp3B9VW1ir5qL1MWRwr6ecjC2NZbGr8vysGeme9vXGcFXTMNXb2t" }'
1212
JSON_PAYLOAD=$(echo '{}' | jq --arg query "$QUERY" --argjson variables "$VARIABLES" '.query = $query | .variables = $variables')
13-
curl -X POST "$GRAPHQL_ENDPOINT" \
13+
curl -s -X POST "$GRAPHQL_ENDPOINT" \
1414
-H "Content-Type: application/json" \
1515
-d "$JSON_PAYLOAD"

website/docs/developers/scripts/graphql-api/queries/curl/account.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1010
QUERY=$(< "$SCRIPT_DIR/../query/account.graphql")
1111
VARIABLES='{"publicKey": "B62qp3B9VW1ir5qL1MWRwr6ecjC2NZbGr8vysGeme9vXGcFXTMNXb2t"}'
1212
JSON_PAYLOAD=$(echo '{}' | jq --arg query "$QUERY" --argjson variables "$VARIABLES" '.query = $query | .variables = $variables')
13-
curl -X POST "$GRAPHQL_ENDPOINT" \
13+
curl -s -X POST "$GRAPHQL_ENDPOINT" \
1414
-H "Content-Type: application/json" \
1515
-d "$JSON_PAYLOAD"

website/docs/developers/scripts/graphql-api/queries/curl/basic-connectivity.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
99
# Read the query and create JSON payload using jq for proper escaping
1010
QUERY=$(< "$SCRIPT_DIR/../query/basic-connectivity.graphql")
1111
JSON_PAYLOAD=$(echo "{}" | jq --arg query "$QUERY" '.query = $query')
12-
curl -X POST "$GRAPHQL_ENDPOINT" \
12+
curl -s -X POST "$GRAPHQL_ENDPOINT" \
1313
-H "Content-Type: application/json" \
1414
-d "$JSON_PAYLOAD"

website/docs/developers/scripts/graphql-api/queries/curl/best-chain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
99
# Read the query and create JSON payload using jq for proper escaping
1010
QUERY=$(< "$SCRIPT_DIR/../query/best-chain.graphql")
1111
JSON_PAYLOAD=$(echo "{}" | jq --arg query "$QUERY" '.query = $query')
12-
curl -X POST "$GRAPHQL_ENDPOINT" \
12+
curl -s -X POST "$GRAPHQL_ENDPOINT" \
1313
-H "Content-Type: application/json" \
1414
-d "$JSON_PAYLOAD"

website/docs/developers/scripts/graphql-api/queries/curl/block.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
99
# Read the query and create JSON payload using jq for proper escaping
1010
QUERY=$(< "$SCRIPT_DIR/../query/block.graphql")
1111
JSON_PAYLOAD=$(echo "{}" | jq --arg query "$QUERY" '.query = $query')
12-
curl -X POST "$GRAPHQL_ENDPOINT" \
12+
curl -s -X POST "$GRAPHQL_ENDPOINT" \
1313
-H "Content-Type: application/json" \
1414
-d "$JSON_PAYLOAD"

website/docs/developers/scripts/graphql-api/queries/curl/current-snark-worker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
99
# Read the query and create JSON payload using jq for proper escaping
1010
QUERY=$(< "$SCRIPT_DIR/../query/current-snark-worker.graphql")
1111
JSON_PAYLOAD=$(echo "{}" | jq --arg query "$QUERY" '.query = $query')
12-
curl -X POST "$GRAPHQL_ENDPOINT" \
12+
curl -s -X POST "$GRAPHQL_ENDPOINT" \
1313
-H "Content-Type: application/json" \
1414
-d "$JSON_PAYLOAD"

website/docs/developers/scripts/graphql-api/queries/curl/daemon-status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
99
# Read the query and create JSON payload using jq for proper escaping
1010
QUERY=$(< "$SCRIPT_DIR/../query/daemon-status.graphql")
1111
JSON_PAYLOAD=$(echo "{}" | jq --arg query "$QUERY" '.query = $query')
12-
curl -X POST "$GRAPHQL_ENDPOINT" \
12+
curl -s -X POST "$GRAPHQL_ENDPOINT" \
1313
-H "Content-Type: application/json" \
1414
-d "$JSON_PAYLOAD"

website/docs/developers/scripts/graphql-api/queries/curl/genesis-block.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
99
# Read the query and create JSON payload using jq for proper escaping
1010
QUERY=$(< "$SCRIPT_DIR/../query/genesis-block.graphql")
1111
JSON_PAYLOAD=$(echo "{}" | jq --arg query "$QUERY" '.query = $query')
12-
curl -X POST "$GRAPHQL_ENDPOINT" \
12+
curl -s -X POST "$GRAPHQL_ENDPOINT" \
1313
-H "Content-Type: application/json" \
1414
-d "$JSON_PAYLOAD"

website/docs/developers/scripts/graphql-api/queries/curl/genesis-constants.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
99
# Read the query and create JSON payload using jq for proper escaping
1010
QUERY=$(< "$SCRIPT_DIR/../query/genesis-constants.graphql")
1111
JSON_PAYLOAD=$(echo "{}" | jq --arg query "$QUERY" '.query = $query')
12-
curl -X POST "$GRAPHQL_ENDPOINT" \
12+
curl -s -X POST "$GRAPHQL_ENDPOINT" \
1313
-H "Content-Type: application/json" \
1414
-d "$JSON_PAYLOAD"

website/docs/developers/scripts/graphql-api/queries/curl/network-id.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
99
# Read the query and create JSON payload using jq for proper escaping
1010
QUERY=$(< "$SCRIPT_DIR/../query/network-id.graphql")
1111
JSON_PAYLOAD=$(echo "{}" | jq --arg query "$QUERY" '.query = $query')
12-
curl -X POST "$GRAPHQL_ENDPOINT" \
12+
curl -s -X POST "$GRAPHQL_ENDPOINT" \
1313
-H "Content-Type: application/json" \
1414
-d "$JSON_PAYLOAD"

0 commit comments

Comments
 (0)