routers.msprojects
Module for the methods regarding ms projects
Module Contents
Functions
|
Add a ms file to a project |
|
Get ms file of a project |
|
Delete ms file of a project |
Attributes
- routers.msprojects.router
- async routers.msprojects.add_ms_file_to_project(file=File(...), user=Depends(get_current_active_user), db_project=Depends(get_project), session=Depends(get_session))
Add a ms file to a project :param request_body: request body :param file: ms file to upload :param user: current authenticated user :param db_project: project to add the file to :param session: session to use :return: uploaded ms project
- Parameters
file (fastapi.UploadFile) –
user (dependencies.User) –
db_project (dependencies.Project) –
session (dependencies.Session) –
- async routers.msprojects.get_ms_file_of_project(db_ms_project=Depends(get_ms_project))
Get ms file of a project :param db_ms_project: ms project from dependencies :return: ms project if found, 404 otherwise
- Parameters
db_ms_project (datatypes.models.MSProject) –
- async routers.msprojects.delete_ms_file_of_project(db_ms_project=Depends(get_ms_project), session=Depends(get_session))
Delete ms file of a project :param db_ms_project: ms project from dependencies :param session: session from dependencies :return: 200 ok if deleted, 404 if not found
- Parameters
db_ms_project (datatypes.models.MSProject) –
session (dependencies.Session) –