TL;DR
This paper investigates the automatic generation of GraphQL wrappers for REST-like APIs, presenting a tool called OASGraph that creates GraphQL interfaces from OpenAPI specifications, outperforming existing solutions in coverage.
Contribution
The paper introduces OASGraph, a novel tool that automatically generates GraphQL wrappers from OpenAPI specs, and evaluates its effectiveness on a large set of APIs.
Findings
OASGraph covers 89.5% of tested APIs.
OASGraph outperforms existing open source alternatives.
Limitations are caused by incomplete or ambiguous OpenAPI data.
Abstract
GraphQL is a query language and thereupon-based paradigm for implementing web Application Programming Interfaces (APIs) for client-server interactions. Using GraphQL, clients define precise, nested data-requirements in typed queries, which are resolved by servers against (possibly multiple) backend systems, like databases, object storages, or other APIs. Clients receive only the data they care about, in a single request. However, providers of existing REST(-like) APIs need to implement additional GraphQL interfaces to enable these advantages. We here assess the feasibility of automatically generating GraphQL wrappers for existing REST(-like) APIs. A wrapper, upon receiving GraphQL queries, translates them to requests against the target API. We discuss the challenges for creating such wrappers, including dealing with data sanitation, authentication, or handling nested queries. We…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
