Feature:
API Hierarchy & Endpoint Management
API Hierarchy & Endpoint Management
Manage custom endpoints and persisted queries hierarchically, to group and expose related endpoints under a logical structure, and organize them via categories.
API Hierarchy
An API may expose several endpoints which are somehow related to each other, and which may execute a similar query. This is the case, for instance, when creating endpoints that exposes the data in one language or another.
Through the API Hierarchy we can define a structure for endpoints, so that we can produce:
/graphql/posts/english/
/graphql/posts/french/
In this case, a parent query posts
can provide the GraphQL query, and its descendant queries english
and french
provide the variables to customize the query.
Endpoint Management
When creating a Custom Endpoint or Persisted Query, we can add a "GraphQL endpoint category" to it, to organize all of our endpoints:
For instance, we can create categories to manage endpoints by client, application, or any other required piece of information:
On the list of Custom Endpoints and Persisted Queries, we can visualize their categories and, clicking on any category link, or using the filter at the top, will only display all entries for that category: