Skip to content

Updating TRAPI Workflow Operations

Amy Glen edited this page Aug 18, 2022 · 1 revision

Updating the workflow operations that ARAX knows about

  1. Manually update implemented operations in OA3 ARAX yaml
  2. Run workflow2yaml.py and look at printed output
  3. copy printed output to OA3 ARAX yaml
  4. Do this in the query section, async query section, and response section
  5. $defs -> components/schemas
  6. copy other workflow printed output: Everything after Components: schema: then paste at the bottom of the file replacing what is already there
  7. Copy all the above changes into openapi/openapi.yaml
  8. Run the replaceall for each endpoint as the user rt:
cd ../../UI/OpenAPI/python-flask-server
cd openapi_server/openapi
mv openapi.yaml openapi.yaml-prev1
git pull
replaceall.pl 'arax.ncats.io/' 'arax.ncats.io/devED/' openapi.yaml
  1. restart each endpoint and check it is updated in swagger ui