From b5331ff25a580f1a38030f4720c6d0cad8c5e100 Mon Sep 17 00:00:00 2001 From: Eilon Lipton Date: Mon, 1 Jun 2020 15:32:21 -0700 Subject: [PATCH 1/2] Readme updates - Changed HTTP URL to HTTPS - Fixed list formatting - Added sample to show creation of GraphQLHttpClient --- README.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f748d12c..1e787251 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,19 @@ A GraphQL Client for .NET Standard over HTTP. ## Specification: The Library will try to follow the following standards and documents: -[GraphQL Specification](https://facebook.github.io/graphql/June2018) -[GraphQL HomePage](http://graphql.org/learn) + +* [GraphQL Specification](https://facebook.github.io/graphql/June2018) +* [GraphQL HomePage](https://graphql.org/learn) ## Usage: +### Create a GraphQLHttpClient + +```csharp +// To use NewtonsoftJsonSerializer, add a reference to NuGet package GraphQL.Client.Serializer.Newtonsoft +var graphQLClient = new GraphQLHttpClient("https://api.example.com/graphql", new NewtonsoftJsonSerializer()); +``` + ### Create a GraphQLRequest: #### Simple Request: ```csharp @@ -124,9 +132,10 @@ subscription.Dispose(); ``` ## Useful Links: -[StarWars Example Server (GitHub)](https://github.com/graphql/swapi-graphql) -[StarWars Example Server (EndPoint)](https://swapi.apis.guru/) -[GitHub GraphQL API Docs](https://developer.github.com/v4/guides/forming-calls/) -[GitHub GraphQL Explorer](https://developer.github.com/v4/explorer/) -[GitHub GraphQL Endpoint](https://api.github.com/graphql) +* [StarWars Example Server (GitHub)](https://github.com/graphql/swapi-graphql) +* [StarWars Example Server (EndPoint)](https://swapi.apis.guru/) + +* [GitHub GraphQL API Docs](https://developer.github.com/v4/guides/forming-calls/) +* [GitHub GraphQL Explorer](https://developer.github.com/v4/explorer/) +* [GitHub GraphQL Endpoint](https://api.github.com/graphql) From a9c7a346f09042f90fbe2339ce4f9f6037224bc3 Mon Sep 17 00:00:00 2001 From: Eilon Lipton Date: Mon, 17 Aug 2020 16:35:59 -0700 Subject: [PATCH 2/2] Update README.md Co-authored-by: Ivan Maximov --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e787251..274e92e4 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ A GraphQL Client for .NET Standard over HTTP. ## Specification: The Library will try to follow the following standards and documents: -* [GraphQL Specification](https://facebook.github.io/graphql/June2018) +* [GraphQL Specification](https://spec.graphql.org/June2018/) * [GraphQL HomePage](https://graphql.org/learn) ## Usage: