skydive
skydive copied to clipboard
GraphQL instead of API REST?
Maybe could be more interesting to implement a GraphQL API to access the data instead of the REST API.
GraphQL adapts better to the graph database schema, it is self-documented and comes with a UI to access the data, something like swagger: GraphiQL or Graph playground.
GraphQL also supports server push via subscriptions (normally it uses websockets under the hood).
On the other hand, node metadata is not structured, so maybe is hard to handle it with graphql, but maybe nor harder than with an api rest.