team-folivora / annoto

Medical annotation tool
MIT License
0 stars 1 forks source link

Auto-generated REST client #44

Closed bewee closed 2 years ago

bewee commented 2 years ago

This suggests using openapi-typescript-codegen to auto-generate a REST client for the Vue application. Use npm run generate-api to regenerate it.


Right now, the official release does not support the generation of routes that return binary contents. However, there is an open PR to implement this (986) which works like a charm. You can simply install that one on your machine instead:

cd static
git clone https://github.com/loganbenjamin/openapi-typescript-codegen.git
(cd openapi-typescript-codegen; npm i; npm run build)
npm i openapi-typescript-codegen
npm run generate-api

Alternatively, we could fork this fork and publish it on npmjs ourselves for now.

codecov-commenter commented 2 years ago

Codecov Report

Merging #44 (12f84d8) into dev (795084c) will not change coverage. The diff coverage is n/a.

@@            Coverage Diff            @@
##               dev       #44   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           45        45           
=========================================
  Hits            45        45           
Impacted Files Coverage Δ
api/mod/src/app.py 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 795084c...12f84d8. Read the comment docs.