From 707a5c41cd6b6cb45cdc09546261f3ea421fd120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Barna?= Date: Fri, 28 Oct 2016 03:55:36 +0200 Subject: [PATCH] Fix GET /duck method --- controllers/default_controller.py | 4 ++++ swagger/swagger.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/controllers/default_controller.py b/controllers/default_controller.py index ea81210..94ad2a8 100644 --- a/controllers/default_controller.py +++ b/controllers/default_controller.py @@ -1,2 +1,6 @@ def ducks_get(): return 'do some magic!' + +def duck_get(): + return 'do some duck magic!' + diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index 9672baf..83e8421 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -29,6 +29,7 @@ paths: get: tags: - "default_controller" + operationId: "controllers.default_controller.duck_get" responses: 200: description: "All data regarding the specified duck"