Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Implement GraphQL API for the Public Rest API #102

Open
wtrocki opened this issue Jul 8, 2021 · 3 comments
Open

Implement GraphQL API for the Public Rest API #102

wtrocki opened this issue Jul 8, 2021 · 3 comments

Comments

@wtrocki
Copy link
Contributor

wtrocki commented Jul 8, 2021

Kafka and Connectors will provide GraphQL API along with the REST.
While rest is the main choice for APP interface we could build and utilize GraphQL API.

Research here is needed how to expose GraphQL API for Quarkus/Java

FYI @chirino

@EricWittmann
Copy link
Member

EricWittmann commented Jul 8, 2021

What is the motivation for a GraphQL API and a REST API?

@chirino
Copy link

chirino commented Jul 9, 2021

More options for the user. If you have lots of relations in your resources, GraphQL can make it easier to get a set of related data in one request (which would require multiple REST api calls). It's also typically easier to use for some front end developers due to how easy it is to introspect / explore.

The go lib we are using for the connectors automatically implements the graphlq endpoint using the openapi spec, so it's super easy to maintain. It translates the graphql requests it receives and makes REST api calls. It can be used as side car to enable graphql on a normal REST sever that has a well defined openapi spec.

@EricWittmann
Copy link
Member

OK thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants