Have your cake and eat it too: GraphQL? REST API? Maybe you can have both!

Session
Until July 9
✓ 2-in-1 conference package
✓ Group Discount
✓ Save up to € 269
Register now
Bis 9. Juli:
✓ 2-in-1 Konferenzpaket
✓ Kollegenrabatt
✓ Bis zu 269 € sparen
Jetzt anmelden
Until August 6
✓ C64 or Raspberry Pi for free
✓ 2 in 1 conference package
✓ Save up to € 404
Register now
Bis 6. August:
✓ Raspberry Pi oder C64 Mini for free
✓ 2-in-1 Konferenzpaket
✓ Bis zu 404 € sparen
Jetzt anmelden

So you’ve decided to write a public API. Great!

Should it be RESTful? Or perhaps a GraphQL API, the new cool kid on the API block? What if you already have an internal GraphQL implementation, but need to expose it publicly as REST?

In this talk, we’ll very briefly review the main differences, benefits and tradeoffs between REST and GraphQL for *public* API implementation, and go over how we at Sisense wrote a Node.js library to automatically generate a RESTful API from our existing GraphQL schema.

GraphQL2REST, which we released as an open-source npm package, allowed us to offer both API interfaces – GraphQL *and* REST – while maintaining only one code path! I’ll talk about this case study and end with a live demo showing how your GraphQL API can be exposed as a customized REST API without writing a single line of code.

It might be also relevant to you, if you already have a GraphQL API, but your users want REST; or, if you want to develop a new GraphQL API and get REST on top of it, for free; or, if you wish to benefit from GraphQL internally while exposing a quite different truly RESTful API externally.

This Session belongs to the Diese Session gehört zum Programm vom BerlinBerlin program. Take me to the program of . Hier geht es zum Programm von The Hague Den Haag .

Take me to the full program of Zum vollständigen Programm von Berlin Berlin .

This Session Diese Session belongs to the gehört zum Programm von BerlinBerlin program. Take me to the current program of . Hier geht es zum aktuellen Programm von The Hague Den Haag or oder Berlin Berlin .

All News & Updates of API Conference 2020:

Behind the Tracks

API Management

A detailed look at the development of APIs

API Development

Architecture of APIs and API systems

API Design

From policies and identities to monitoring

API Platforms & Software as a Service

Web APIs for a larger audience & API platforms related to SaaS