Skip to content

Commit

Permalink
fix(docs): fix graphql URLs (#4816)
Browse files Browse the repository at this point in the history
* Fix graphql URLs

* fix(docs): fix graphql testnet endpoint
  • Loading branch information
Thoralf-M authored Jan 16, 2025
1 parent f7920e5 commit b63e957
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/content/developer/getting-started/graphql-rpc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ description: Intoductory guide to making queries of the IOTA RPC using the Graph

The quickest way to access the GraphQL service for IOTA RPC is through the online IDE that provides a complete toolbox for fetching data and executing transactions on the network. The online IDE provides features such as auto-completion (use Ctrl+Space or just start typing), built-in documentation (Book icon, top-left), multi-tabs, and more.

The online IDE is available for [Devnet](https://graphql.devnet.iota.cafe/l) and [Testnet](https://graphql.testnet.iota.cafel). This guide contains various queries that you can try directly in the IDE.
The online IDE is available for [Devnet](https://graphql.devnet.iota.cafe) and [Testnet](https://graphql.testnet.iota.cafe). This guide contains various queries that you can try directly in the IDE.

:::info
- Any existing addresses/object IDs in these examples refer to `testnet` data only.
- Both [devnet](https://graphql.devnet.iota.cafe/l) and [testnet](https://graphql.testnet.iota.cafel) services are rate-limited to keep network throughput optimized.
- Both [devnet](https://graphql.devnet.iota.cafe) and [testnet](https://graphql.testnet.iota.cafe) services are rate-limited to keep network throughput optimized.
:::

For more details about some concepts used in the examples below, please see the [GraphQL concepts](../graphql-rpc.mdx) page, and consult the [reference](../../references/iota-graphql.mdx) for full documentation on the supported schema.
Expand Down Expand Up @@ -369,4 +369,4 @@ Examples in the repository are designed to work with the version of GraphQL buil

- [GraphQL migration](../advanced/graphql-migration.mdx): Migrating to GraphQL guides you through migrating IOTA RPC projects from JSON-RPC to GraphQL.
- [GraphQL concepts](../graphql-rpc.mdx): GraphQL for IOTA RPC examines the elements of GraphQL that you should know to get the most from the service.
- [GraphQL reference](../../references/iota-graphql.mdx): Auto-generated GraphQL reference for IOTA RPC.
- [GraphQL reference](../../references/iota-graphql.mdx): Auto-generated GraphQL reference for IOTA RPC.
4 changes: 2 additions & 2 deletions docs/content/developer/graphql-rpc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The service accepts the following optional headers:
By default, each request returns the service's version in the response header: `x-iota-rpc-version`.

```bash
curl -i -X POST https://explorer.iota.org/testnet/graphql \
curl -i -X POST https://graphql.testnet.iota.cafe \
--header 'x-iota-rpc-show-usage: true' \
--header 'Content-Type: application/json' \
--data '{
Expand Down Expand Up @@ -96,7 +96,7 @@ When using the online IDE, supply variables as a JSON object to the query in the
When making a request to the GraphQL service (for example, using `curl`), pass the query and variables as two fields of a single JSON object:

```bash
curl -X POST https://explorer.iota.org/testnet/graphql \
curl -X POST https://graphql.testnet.iota.cafe \
--header 'Content-Type: application/json' \
--data '{
"query": "query ($epochID: Int) { epoch(id: $epochID) { referenceGasPrice } }",
Expand Down

0 comments on commit b63e957

Please sign in to comment.