diff --git a/rfc/0003 RFC GraphQL API for Duniter Clients.md b/rfc/0003 RFC GraphQL API for Duniter Clients.md index 8611d24498fcad37637597fd5b556cc178cc8c01..373fcafc1a728406f54f71854138e8f84b92f039 100644 --- a/rfc/0003 RFC GraphQL API for Duniter Clients.md +++ b/rfc/0003 RFC GraphQL API for Duniter Clients.md @@ -381,11 +381,12 @@ The SSL endpoint string is: ```graphql schema { query: Query + mutation: Mutation } -type Query { - node: Node -} +################################# +# NODE types +################################# type Node { summary: Summary @@ -409,6 +410,38 @@ type Sandboxes { transactions: Sandbox! } +################################# +# WOT types +################################# + +type Identity { + version: Int! + type: String! + currency: String! + issuer: String! + uniqueID: String! + timestamp: String! + signature: String! +} + +################################# +# NODE queries +################################# + +type Query { + node: Node +} + +################################# +# WOT mutations +################################# + +type Mutation { + addIdentity ( + signedRaw: String! + ): Identity +} + ``` ---