The Power of GraphQL With RESTful APIs — Meet Hypnos

August 21, 2019 0 Comments

The Power of GraphQL With RESTful APIs — Meet Hypnos

 

 

Desktop app for sandboxing GraphQL-like calls and responses to RESTful API endpoints

Will Robinson

It’s difficult to discuss GraphQL or Apollo without talking about the other. Since its founding in 2016, Apollo has emerged as one of the leading clients to leverage GraphQL within an application.

Airbnb, Audi, CNBC, and Expedia are among the engineering teams Apollo touts as adopting its technology.

GraphQL is lauded for its speed and declarative querying; unlike REST APIs, a GraphQL query returns exactly what the client requests to a single endpoint, boosting performance for clients with poor internet connections or less powerful devices.

But to implement the querying language, an API overhaul is necessary to appropriately serve GraphQL requests. To test queries, developers have to spin up a quick application or write a GraphQL back end.

Existing playgrounds are useful but they might not have meaningful data or errors for developers. And while GraphQL is very powerful, errors are not descriptive, even with the Apollo Client layer.

That’s where Hypnos comes in.

Hypnos is an endpoint tester, utilizing Apollo’s link-rest package to make GraphQL-structured queries to authenticated or non-authenticated RESTful APIs.

When a proper query is made, a response object is rendered on the screen with the fields specified by the client.


Tag cloud