2020-05-23 20:16:35 +00:00
|
|
|
#
|
2020-05-25 22:32:45 +00:00
|
|
|
# Copyright 2020 DxOS.org
|
2020-05-23 20:16:35 +00:00
|
|
|
#
|
|
|
|
|
2020-05-28 02:35:37 +00:00
|
|
|
# TODO(burdon): Replace generic results with schema.
|
|
|
|
type JSONResult {
|
|
|
|
timestamp: String!
|
|
|
|
json: String!
|
|
|
|
}
|
|
|
|
|
2020-05-26 02:16:25 +00:00
|
|
|
type Result {
|
|
|
|
timestamp: String!
|
|
|
|
code: Int!
|
2020-05-24 02:37:52 +00:00
|
|
|
}
|
|
|
|
|
2020-05-24 13:55:36 +00:00
|
|
|
type Log {
|
2020-05-24 02:37:52 +00:00
|
|
|
timestamp: String!
|
2020-05-26 02:16:25 +00:00
|
|
|
log: [String]!
|
2020-05-23 17:13:45 +00:00
|
|
|
}
|
|
|
|
|
2020-05-24 13:55:36 +00:00
|
|
|
#
|
|
|
|
# Schema
|
|
|
|
#
|
|
|
|
|
2020-05-28 02:35:37 +00:00
|
|
|
type Mutation {
|
|
|
|
action(command: String!): Result!
|
|
|
|
}
|
|
|
|
|
2020-05-23 17:13:45 +00:00
|
|
|
type Query {
|
2020-05-28 02:35:37 +00:00
|
|
|
system_status: SystemStatus!
|
2020-05-25 22:32:45 +00:00
|
|
|
ipfs_status: JSONResult!
|
|
|
|
wns_status: JSONResult!
|
|
|
|
wns_records(type: String): JSONResult!
|
|
|
|
wns_log: Log!
|
2020-05-24 13:55:36 +00:00
|
|
|
}
|
|
|
|
|
2020-05-24 02:37:52 +00:00
|
|
|
schema {
|
2020-05-24 13:55:36 +00:00
|
|
|
mutation: Mutation
|
2020-05-24 02:37:52 +00:00
|
|
|
query: Query
|
2020-05-23 17:13:45 +00:00
|
|
|
}
|