Also, our entire stack is GraphQL-based, so we must have a GraphQL API according to this schema:
schema {
query: Query
mutation: Mutation
subscription: Subscription
}
type Query {
balance: Int!
isEven(input: isEvenInput!): isEvenPayload!
}
type Mutation {
depositCoins(amount: Int!): DepositPayload!
withdrawCoins(amount: Int!): WithdrawPayload!
}
type Subscription {
coinsDeposited: Int!
coinsWithdrawn: Int!
coinsSpent: Int!
}
input isEvenInput {
number: Int!
gas: Int!
}
type isEvenPayload {
result: bool
balanceLeft: Int!
isError: bool!
errMsg: String
}
type DepositPayload {
newBalance: Int!
isError: bool!
errMsg: String
}
type WithdrawPayload {
newBalance: Int!
isError: bool!
errMsg: String
}That should really help distinguish yourself in this hotly contested market space.
You can see an example here: https://github.com/BraydonKains/is-even/blob/master/python.m...
I'll be around for questions!
Hopefully, it has support for imperial numbers one day