diff --git a/rfc/0003 RFC GraphQL API for Duniter Clients.md b/rfc/0003 RFC GraphQL API for Duniter Clients.md index 61c1be7b58c23615e9278dc4ac5d726b5a459be8..c005915e3f274ce1e2336d896e1493734dc471c8 100644 --- a/rfc/0003 RFC GraphQL API for Duniter Clients.md +++ b/rfc/0003 RFC GraphQL API for Duniter Clients.md @@ -376,6 +376,57 @@ The SSL endpoint string is: GVAS [DNS] [IPv4] [IPv6] [PORT] [PATH] +## API GraphQL Schema + +```GraphQL + +schema { + query: Query + mutation: Mutation +} + +type Query { + node: Node +} + +type Node { + summary: Summary + sandboxes: Sandboxes +} + +type Summary { + software: String! + version: String! + forkWindowSize: Int! +} + +interface Sandbox { + size: Int! + free: Int! +} + +type IdentitiesSandbox implements Sandbox { + size: Int! + free: Int! +} + +type MembershipsSandbox implements Sandbox { + size: Int! + free: Int! +} + +type TransactionsSandbox implements Sandbox { + size: Int! + free: Int! +} + +type Sandboxes { + identities: IdentitiesSandbox + memberships: MembershipsSandbox + transactions: TransactionsSandbox +} + +``` --- End of the document.