Every time
- Create a new branch
git checkout -b new_branch_name
- Install openapi-generator
```npm install @openapitools/openapi-generator-cli -g``
Make sure that the npm and its packages are in the PATH.
-
Place the latest swagger.json in
./generate/swagger.json
-
Remove the current files except the
token.py
file
mv data_bridges_client/token.py .
rm -rf test docs data_bridges_client
mkdir data_bridges_client
mv ./token.py data_bridges_client/
- Generate the client by running this command from the root of the repository.
openapi-generator-cli generate -g python -i generate/swagger.json -o . --package-name data_bridges_client --git-user-id WFP-VAM --git-repo-id DataBridgesAPI
- Manually revert changes to
setup.py
andREADME.md
. These relate to additional functionality we developed to handle the WFP token refresh workflow. - Commit, push and open a PR into
dev
for review.