Skip to content

Latest commit

 

History

History

generate

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Generating a new client

Every time

  1. Create a new branch git checkout -b new_branch_name
  2. Install openapi-generator

```npm install @openapitools/openapi-generator-cli -g``

Make sure that the npm and its packages are in the PATH.

  1. Place the latest swagger.json in ./generate/swagger.json

  2. 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/
  1. 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
  1. Manually revert changes to setup.py and README.md. These relate to additional functionality we developed to handle the WFP token refresh workflow.
  2. Commit, push and open a PR into dev for review.