Via Xledger.net
If you have at least administrator access to Xledger, the schema can be accessed via :
You'll then see the iGraphQL editor where you can post queries or mutations :
The bottom left dropdown lets you choose between Queries, Mutations and Subscriptions.
Note: The queries sent using this editor will affect the entity you are logged in. Make sure you are logged in demo if you are using mutations.
Via Postman
In most cases, developers or third parties won't have access to Xledger UI. If this is the case and you can still view the schema easily in Postman. Currently Postman doesn't allow exporting these collection so here is a step by step.
To do so open postman (you will need the desktop agent for this so make sure this is downloaded and installed) and create a new GraphQL collection by going to new collection and expanding on all templates :
Navigate to the collection variables :
Here enter the URL of the environment you want to target as well as your token if you have one (here instructions on how to Generate an API token). If you do not have a token yet get in touch with support.
Note : Make sure to include "token " before the token hash.
Next add the authorization setup to Queries, Mutations, Introspection and Subscriptions as follows:
You are now ready to import the schema :
if all went well you can now see the schema and build requests :
Note : to save a query simply use add example on the relevant collection header :