Skip to content

naartjie/investec.graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Investec Bank GraphQL

A GraphQL API interface for Investec's Open Banking REST API.

Requirements: .NET (5.0 or higher).

To run the server locally (you'll need a client id and secret from Investec's Developer Portal):

export INVESTEC_CLIENT_ID=<YOUR CLIENT ID HERE>
export INVESTEC_CLIENT_SECRET=<YOUR CLIENT SECRET HERE>

dotnet restore
dotnet run

Open http://localhost:5000 in your browser

Here is a query you can run:

{
  mainAccount {
    number
    productName
    referenceName

    balances {
      current
      available
    }

    transactions(last: 5) {
      transactionDate
      amount
      description
    }
  }
}

If you want to play with the code, start it in watch mode, make some changes, and the server will restart

dotnet watch run

Acknowledgements

  • Investec Open Banking CLI really helped with capturing the mock JSON responses, and in general with a working example of how to use the Investec Open Banking REST API.

About

GraphQL wrapper for Investec Open Banking API

Topics

Resources

Stars

Watchers

Forks