Have Your Cake and Eat it Too: GraphQL? REST API? Maybe You Can Have Both!

Session
Join PWA Conference:
Register now
Join PWA Conference:
Register now
Until the conference starts:
✓ Group discount
✓ Extra specials for freelancers
Register now
Until the conference starts:
✓ Group discount
✓ Extra specials for freelancers
Register now
Until June 18:
✓ Workshop Day for free
✓ Raspberry Pi or C64 Mini for free
✓ Save over $840
Register now
Until June 18:
✓ Workshop Day for free
✓ Raspberry Pi or C64 Mini for free
✓ Save over $840
Register now
Until August 20:
✓ PlayStation Classic Mini or C64 Mini for free
✓ Group Discount
✓ Save up to 495 €
Register now
Bis 20. August:
✓PlayStation Classic Mini oder C64 Mini for free
✓ Kollegenrabatt
✓ Bis zu 495 € sparen
Register now

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! In a live demo, I’ll show 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 MunichMünchen program. Take me to the program of . Hier geht es zum Programm von PWA Conference London PWA Conference London .

This Session belongs to the Diese Session gehört zum Programm vom MunichMünchen program. Take me to the program of . Hier geht es zum Programm von London (Online) London (Online) .

This Session belongs to the Diese Session gehört zum Programm vom MunichMünchen program. Take me to the program of . Hier geht es zum Programm von New York New York .

Take me to the full program of Zum vollständigen Programm von Munich München .

This Session Diese Session belongs to the gehört zum Programm von MunichMünchen program. Take me to the current program of . Hier geht es zum aktuellen Programm von PWA Conference London PWA Conference London , London (Online) London (Online) , New York New York or oder Munich München .

STAY TUNED!

 

BEHIND THE TRACKS OF iJS

Angular

Best-Practises with Angular

Vue.js

One of the most famous frameworks of modern days

JavaScript Practices & Tools

DevOps, Testing, Performance, Toolchain & SEO

Node.js

All about Node.js

React

From Basic concepts to unidirectional data flows