Skip to content

Commit

Permalink
Merge pull request #24 from masterdatascience-UIMP-UC/docstrings
Browse files Browse the repository at this point in the history
Fix Docstrings fixes issue #19
  • Loading branch information
orviz authored Mar 7, 2022
2 parents 2b9afce + 72063dd commit eb289c3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
7 changes: 7 additions & 0 deletions openapi_server/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""
PredictaaS is a app aimed to become the central platforn for ML in the EOSC.
It takes input data from the user, runs it through a Machine Learning (ML) model and produces a prediction/result.
"""
14 changes: 12 additions & 2 deletions openapi_server/controllers/app_controller.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
"""
Main code.
Gets the ML application and Updates it.
"""

from aiohttp import web

from openapi_server.models.ml_app import MLApp


async def get_ml_app_by_name(request: web.Request, appname) -> web.Response:
"""Get ML application by name
"""
Get ML application by name.
Some description of the operation. You can use `markdown` here.
Expand All @@ -16,7 +25,8 @@ async def get_ml_app_by_name(request: web.Request, appname) -> web.Response:


async def update_ml_app(request: web.Request, appname, body) -> web.Response:
"""Updated app
"""
Update app.
Update ML application by name.
Expand Down
8 changes: 8 additions & 0 deletions openapi_server/controllers/security_controller_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""
Import necessary module from the library typing.
This module provides runtime support for type hints.
"""
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ pytest~=4.6.7 # needed for python 2.7+3.4
pytest-cov>=2.8.1
pytest-randomly==1.2.3 # needed for python 2.7+3.4
pytest-aiohttp>=0.3.0
pydocstyle-6.1.1

0 comments on commit eb289c3

Please sign in to comment.