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

[enh] #59 enhance GVA request_data_graphql.py example

parent f09b7df2
No related branches found
No related tags found
No related merge requests found
...@@ -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