beacon-APIs icon indicating copy to clipboard operation
beacon-APIs copied to clipboard

GraphQL

Open lastmjs opened this issue 4 years ago • 3 comments

Hey, is there any chance a GraphQL API could be standardized along with any REST or JSON RPC APIs being discussed?

lastmjs avatar May 06 '20 19:05 lastmjs

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/

wemeetagain avatar Jun 30 '20 14:06 wemeetagain

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

vince0656 avatar Aug 06 '22 06:08 vince0656

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

dapplion avatar Dec 08 '23 12:12 dapplion