Home / Companies / Hasura / Blog / Post Details
Content Deep Dive

Convert REST endpoints from OpenAPI spec to GraphQL in 2 clicks

Blog post from Hasura

Post Details
Company
Date Published
Author
Sooraj Sanker
Word Count
1,251
Language
English
Hacker News Points
-
Summary

The text discusses the process of converting REST endpoints from OpenAPI specification to GraphQL using Hasura, an open-source engine that connects data sources and provides a GraphQL API. This conversion is made easier with Hasura's new feature, which allows developers to import multiple REST endpoints in just 2 clicks. The benefits of moving from REST to GraphQL include more efficient data retrieval, better control for clients, easier evolution of APIs, increased flexibility, and a better developer experience. The process involves preparing the OpenAPI specification JSON/YAML file, loading it on Hasura console UI, importing endpoints to the GraphQL schema, testing the endpoint, adding action permissions, and making additional configurations as needed.