beacon-APIs
beacon-APIs copied to clipboard
GraphQL
Hey, is there any chance a GraphQL API could be standardized along with any REST or JSON RPC APIs being discussed?
I think we can support this thru some sort of auto-translation tool (openAPI -> graphQL) Hopefully such a solution would require minimal additional overhead. Something like https://github.com/IBM/openapi-to-graphql or https://github.com/yarax/swagger-to-graphql/
This would be great mainly from the perspective of asking the node for only the data points you require rather than waiting on the node collecting things you’re going to discard anyway which is one thing when using one endpoint, another for many REST endpoints
I don't think there's much bandwidth for down stream beacon clients to implement support for GraphQL. Given that there are many beacon implementations, would be best to have some middleware that interfaces between GraphQL consumers and the beacon REST API