It appears that the API is unversioned, which concerns me as my company is very future-looking and will need to support numbers as they modernize. How will you handle version migrations?
Show HN: isEven API – tell if a number is even SaaS
11–15 of 15 posts
Re: Show HN: isEven API – tell if a number is even SaaS
#12I'd rather pay with with utility isEvenCoins, rather than with USD.
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
}Re: Show HN: isEven API – tell if a number is even SaaS
#13I am fine as long as the ads in api response are not personalized.
Re: Show HN: isEven API – tell if a number is even SaaS
#14I'd rather pay with with utility isEvenCoins, rather than with USD. 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…
Beautiful! We'll begin work on this as soon as we finish planetzero's idea, the isBool API.
Re: Show HN: isEven API – tell if a number is even SaaS
#15This is much more practical than learning maths.
Hopefully, it has support for imperial numbers one day