We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current run_api interface for running the AiiDA REST API has unnecessarily many parameters, making it complicated to use in WSGI scripts, e.g.:
run_api
from aiida.restapi import api from aiida.restapi.run_api import run_api import aiida.restapi CONFIG_DIR = os.path.join(os.path.split(os.path.abspath(aiida.restapi.__file__))[0], 'common') (app, api) = run_api(api.App, api.AiidaApi, hostname="localhost", port=5000, config=CONFIG_DIR, debug=False, wsgi_profile=False, hookup=False, catch_internal_server=False)
While all but the first two parameters are keyword arguments, the code will actually crash if they are not provided.
In reality, there is no reason to have to specify any parameters whatsoever and one should simply be able to call run_api().
run_api()
The text was updated successfully, but these errors were encountered:
Fixed in PR #3875
Sorry, something went wrong.
ltalirz
Successfully merging a pull request may close this issue.
The current
run_api
interface for running the AiiDA REST API has unnecessarily many parameters, making it complicated to use in WSGI scripts, e.g.:While all but the first two parameters are keyword arguments, the code will actually crash if they are not provided.
In reality, there is no reason to have to specify any parameters whatsoever and one should simply be able to call
run_api()
.The text was updated successfully, but these errors were encountered: