laconic-console/packages/console-server/src/gql/api.graphql
2020-05-27 22:35:37 -04:00

41 lines
518 B
GraphQL

#
# Copyright 2020 DxOS.org
#
# TODO(burdon): Replace generic results with schema.
type JSONResult {
timestamp: String!
json: String!
}
type Result {
timestamp: String!
code: Int!
}
type Log {
timestamp: String!
log: [String]!
}
#
# Schema
#
type Mutation {
action(command: String!): Result!
}
type Query {
system_status: SystemStatus!
ipfs_status: JSONResult!
wns_status: JSONResult!
wns_records(type: String): JSONResult!
wns_log: Log!
}
schema {
mutation: Mutation
query: Query
}