Skip to content

Commit cbe22c1

Browse files
committed
added auth
1 parent f37a67e commit cbe22c1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/generate_api.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
branches:
99
- main
1010
env:
11-
PACKAGE_NAME: macrobond # Define your package name here
11+
PACKAGE_NAME: macrobond
12+
OPENAPI_SPEC: https://api.macrobondfinancial.com/swagger/v1/swagger.json
1213

1314
jobs:
1415
process-yaml:
@@ -46,7 +47,7 @@ jobs:
4647
- name: Generate API
4748
run: |
4849
cd external-repo/Software
49-
npx @openapitools/openapi-generator-cli --custom-generator MATLAB/lib/jar/MATLABClientCodegen-openapi-generator-0.0.1.jar generate -g MATLAB -i https://api.macrobondfinancial.com/swagger/v1/swagger.json -o macrobond --package-name ${{ env.PACKAGE_NAME }}
50+
npx @openapitools/openapi-generator-cli -p AddOAuth=auth --custom-generator MATLAB/lib/jar/MATLABClientCodegen-openapi-generator-0.0.1.jar generate -g MATLAB -i ${{OPENAPI_SPEC}} -o macrobond --package-name ${{ env.PACKAGE_NAME }}
5051
5152
- name: Configure Git
5253
run: |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ This repository autogenerates the Macrobond Data API for MATLAB. The latest open
44

55
https://api.macrobondfinancial.com/swagger/v1/swagger.json
66

7-
Which generates the MATLAB files into `/AutogeneratedAPI`. This is then manually ammended to add a few bits like the authentication and finally packaged as a toolbox (to-do)
7+
which generates the MATLAB files into `/AutogeneratedAPI`. This is then manually ammended to add a few bits like the authentication and finally packaged as a toolbox (to-do)
88

0 commit comments

Comments
 (0)