Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add endpoint for download #66

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

qwelyt
Copy link
Contributor

@qwelyt qwelyt commented Oct 5, 2022

You can now download your models using the endpoint /download. You need to specify the parameters m for which module and format for which format you want it in.

Ex: localhost:5000/download?m=box.py&format=stl
Will produce box.stl for download.

Things of note:

  • Unsure about the 404-error thrown willy-nilly. Redone. better return codes now
  • Don't know if the getting and setting of module_manager values are really necessary.
  • Style. Python is not my strong side. My code looks very different from yours.

qwelyt added 2 commits October 5, 2022 21:22
You can now download your models using the endpoint /download.
You need to specify the parametres `m` for wich module and `format` for
wich format you want it in.
Some cleanup and stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant