Skip to content
Snippets Groups Projects
Commit 9a3d2e4f authored by Vincent Texier's avatar Vincent Texier
Browse files

[enh] #59 enhance GVA request_data_graphql.py example

parent fe6ad579
Branches
Tags
2 merge requests!119Release 0.61.0,!90Add GraphQL GVA API support
...@@ -11,14 +11,14 @@ from graphql.error import GraphQLSyntaxError ...@@ -11,14 +11,14 @@ from graphql.error import GraphQLSyntaxError
# You can either use a complete defined endpoint : [NAME_OF_THE_API] [DOMAIN] [IPv4] [IPv6] [PORT] # You can either use a complete defined endpoint : [NAME_OF_THE_API] [DOMAIN] [IPv4] [IPv6] [PORT]
# or the simple definition : [NAME_OF_THE_API] [DOMAIN] [PORT] # or the simple definition : [NAME_OF_THE_API] [DOMAIN] [PORT]
# Here we use the secure BASIC_MERKLED_API (BMAS) for standard http over ssl requests # Here we use the secure BASIC_MERKLED_API (BMAS) for standard http over ssl requests
SWAPI_ENDPOINT = "BMAS g1.librelois.fr 443 gva" GVA_ENDPOINT = "BMAS g1.librelois.fr 443 gva"
################################################ ################################################
async def main(): async def main():
client = Client(SWAPI_ENDPOINT) client = Client(GVA_ENDPOINT)
# get query to get schema from api # get query to get schema from api
query = get_introspection_query(False) query = get_introspection_query(False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment