diff --git a/src/actinia_example_plugin/api/helloworld.py b/src/actinia_example_plugin/api/helloworld.py index cf1b310..9fde509 100644 --- a/src/actinia_example_plugin/api/helloworld.py +++ b/src/actinia_example_plugin/api/helloworld.py @@ -40,12 +40,12 @@ def __init__(self) -> None: """Hello world class initialisation.""" self.msg = "Hello world!" - @swagger.doc(helloworld.describeHelloWorld_get_docs) + @swagger.doc(helloworld.describe_hello_world_get_docs) def get(self) -> SimpleStatusCodeResponseModel: """Get 'Hello world!' as answer string.""" return SimpleStatusCodeResponseModel(status=200, message=self.msg) - @swagger.doc(helloworld.describeHelloWorld_post_docs) + @swagger.doc(helloworld.describe_hello_world_post_docs) def post(self) -> SimpleStatusCodeResponseModel: """Hello World post method with name from postbody.""" req_data = request.get_json(force=True) diff --git a/src/actinia_example_plugin/api/project_helloworld.py b/src/actinia_example_plugin/api/project_helloworld.py index 2a4fae2..8c42640 100644 --- a/src/actinia_example_plugin/api/project_helloworld.py +++ b/src/actinia_example_plugin/api/project_helloworld.py @@ -40,13 +40,13 @@ def __init__(self) -> None: """Project hello world class initialisation.""" self.msg = "Project: Hello world!" - @swagger.doc(project_helloworld.describeProjectHelloWorld_get_docs) + @swagger.doc(project_helloworld.describe_project_hello_world_get_docs) def get(self, project_name) -> SimpleStatusCodeResponseModel: """Get 'Hello world!' as answer string.""" msg = f"{self.msg} {project_name}" return SimpleStatusCodeResponseModel(status=200, message=msg) - @swagger.doc(project_helloworld.describeProjectHelloWorld_post_docs) + @swagger.doc(project_helloworld.describe_project_hello_world_post_docs) def post(self, project_name) -> SimpleStatusCodeResponseModel: """Hello World post method with name from postbody.""" req_data = request.get_json(force=True) diff --git a/src/actinia_example_plugin/apidocs/helloworld.py b/src/actinia_example_plugin/apidocs/helloworld.py index 1431f56..b3e55cd 100644 --- a/src/actinia_example_plugin/apidocs/helloworld.py +++ b/src/actinia_example_plugin/apidocs/helloworld.py @@ -23,12 +23,10 @@ __maintainer__ = "mundialis GmbH & Co. KG" -from actinia_example_plugin.model.response_models import ( - SimpleStatusCodeResponseModel, -) +from actinia_example_plugin.model.response_models import \ + SimpleStatusCodeResponseModel - -describeHelloWorld_get_docs = { +describe_hello_world_get_docs = { # "summary" is taken from the description of the get method "tags": ["example"], "description": "Hello World example", @@ -40,7 +38,7 @@ }, } -describeHelloWorld_post_docs = { +describe_hello_world_post_docs = { # "summary" is taken from the description of the get method "tags": ["example"], "description": "Hello World example with name", diff --git a/src/actinia_example_plugin/apidocs/project_helloworld.py b/src/actinia_example_plugin/apidocs/project_helloworld.py index aef3c9b..ac91e03 100644 --- a/src/actinia_example_plugin/apidocs/project_helloworld.py +++ b/src/actinia_example_plugin/apidocs/project_helloworld.py @@ -23,11 +23,10 @@ __maintainer__ = "mundialis GmbH & Co. KG" -from actinia_example_plugin.model.response_models import ( - SimpleStatusCodeResponseModel, -) +from actinia_example_plugin.model.response_models import \ + SimpleStatusCodeResponseModel -describeProjectHelloWorld_get_docs = { +describe_project_hello_world_get_docs = { # "summary" is taken from the description of the get method "tags": ["example"], "description": "Project Hello World example", @@ -50,7 +49,7 @@ }, } -describeProjectHelloWorld_post_docs = { +describe_project_hello_world_post_docs = { # "summary" is taken from the description of the get method "tags": ["example"], "description": "Project Hello World example with name",