From e93b9407b4197c4d3a4b71fe554fffce19477d60 Mon Sep 17 00:00:00 2001 From: Vincent Texier <vit@free.fr> Date: Mon, 23 Jul 2018 10:08:21 +0000 Subject: [PATCH] Update 0003 RFC GraphQL API for Duniter Clients.md --- ...003 RFC GraphQL API for Duniter Clients.md | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/rfc/0003 RFC GraphQL API for Duniter Clients.md b/rfc/0003 RFC GraphQL API for Duniter Clients.md index 61c1be7..c005915 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. -- GitLab