https://github.com/naartjie/investec.graphql
GraphQL wrapper for Investec Open Banking API
https://github.com/naartjie/investec.graphql
dotnet fsharp graphql
Last synced: 24 days ago
JSON representation
GraphQL wrapper for Investec Open Banking API
- Host: GitHub
- URL: https://github.com/naartjie/investec.graphql
- Owner: naartjie
- Created: 2020-09-13T23:03:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-27T12:47:34.000Z (over 2 years ago)
- Last Synced: 2025-03-24T08:46:11.674Z (about 1 month ago)
- Topics: dotnet, fsharp, graphql
- Language: HTML
- Homepage:
- Size: 13.7 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Investec Bank GraphQL
A GraphQL API interface for Investec's [Open Banking REST API](https://developer.investec.com/programmable-banking/#open-api).
Requirements: [.NET](https://dotnet.microsoft.com/download/dotnet) (5.0 or higher).
To run the server locally (you'll need a client id and secret from Investec's Developer Portal):
```sh
export INVESTEC_CLIENT_ID=
export INVESTEC_CLIENT_SECRET=dotnet restore
dotnet run
```Open [http://localhost:5000](http://localhost:5000) in your browser
Here is a query you can run:
```graphql
{
mainAccount {
number
productName
referenceNamebalances {
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
```sh
dotnet watch run
```# Acknowledgements
- [Investec Open Banking CLI](https://github.com/adrianhopebailie/investec) 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.