hotchoc calling API endpoint - working sample
Here is a working sample for hotchoc graphql calling an endpoint. The sample code can be found here
https://github.com/mitzenjeremywoo/graphql-api-integration
To get started install swag tool
To install nswag console cli tool into your local project
Generate the swagger.json from your API endpoint. This file will be used for code generation later
Next, generate your client API that will be consuming or calling your API
And finally add newtonsoft.json library
The step above is for generating the client.
Integrate this client into your application code by following the code github code example.
You should be able to use Banana Cake Pop to run some graphql query against API.
Comments