[openstack-dev] [api] Open API 3.0 for OpenStack API
Jim Rollenhagen
jim at jimrollenhagen.com
Fri Oct 5 11:54:07 UTC 2018
GraphQL has introspection features that allow clients to pull the schema
(types, queries, mutations, etc): https://graphql.org/learn/introspection/
That said, it seems like using this in a client like OpenStackSDK would get
messy quickly. Instead of asking for which versions are supported, you'd
have to fetch the schema, map it to actual features somehow, and adjust
queries based on this info.
I guess there might be a middleground where we could fetch the REST API
version, and know from that what GraphQL queries can be made.
// jim
On Fri, Oct 5, 2018 at 7:30 AM Doug Hellmann <doug at doughellmann.com> wrote:
> Gilles Dubreuil <gdubreui at redhat.com> writes:
>
> >> About the micro version, we discuss with your team mate dmitry in
> >> another email [1]
> >
> > Obviously micro version is a point of contention.
> > My take on this is because consuming them has been proven harder than
> > developing them.
> > The beauty of GraphQL is that there is no need to deal with version at
> all.
> > New fields appears when needed and old one are marked deprecated.
>
> How does someone using GraphQL to use a cloud know when a specific field
> is available? How can they differentiate what is supported in one cloud
> from what is supported in another, running a different version of the
> same service?
>
> Doug
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20181005/0e5ffe4a/attachment.html>
More information about the OpenStack-dev
mailing list