hmpf / easydmp

MIT License
7 stars 2 forks source link

Export via API endpoints #182

Closed hmpf closed 3 years ago

hmpf commented 3 years ago

Add an endpoint to API v2 to export plans.

codecov[bot] commented 3 years ago

Codecov Report

Merging #182 (3db42af) into master (e4f1c66) will increase coverage by 0.01%. The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #182      +/-   ##
==========================================
+ Coverage   55.43%   55.44%   +0.01%     
==========================================
  Files         108      109       +1     
  Lines        5978     6011      +33     
==========================================
+ Hits         3314     3333      +19     
- Misses       2664     2678      +14     
Impacted Files Coverage Δ
src/easydmp/plan/api/v2/views.py 75.28% <40.00%> (-10.44%) :arrow_down:
src/easydmp/auth/api/permissions.py 83.33% <83.33%> (ø)
src/easydmp/lib/api/renderers.py 94.87% <88.88%> (-1.91%) :arrow_down:

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 e4f1c66...3db42af. Read the comment docs.

hmpf commented 3 years ago

Combined endpoint at "/api/v2/plans/NUM/export/". This is html. NUM is plan PK.

Text: "/api/v2/plans/NUM/export.txt" or "/api/v2/plans/NUM/export/?format=txt" PDF: "/api/v2/plans/NUM/export.pdf" or /api/v2/plans/NUM/export/?format=pdf"