From 7fd0441df497479548b9bfab3b0d02ee3a51a797 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi <256895@studenti.unimore.it> Date: Thu, 6 May 2021 03:07:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Use=20summary=20instead=20of=20d?= =?UTF-8?q?escription?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/backend/nest_backend/routes/repository/repository.py | 6 +++--- code/backend/nest_backend/routes/users/login.py | 2 +- code/backend/nest_backend/routes/users/user.py | 6 +++--- code/backend/nest_backend/routes/users/users.py | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/code/backend/nest_backend/routes/repository/repository.py b/code/backend/nest_backend/routes/repository/repository.py index 069cca2..4205e81 100644 --- a/code/backend/nest_backend/routes/repository/repository.py +++ b/code/backend/nest_backend/routes/repository/repository.py @@ -13,7 +13,7 @@ def page_repository(rid): """ --- get: - description: Get details about a repository. + summary: Get details about a repository. parameters: - in: path schema: IntegerParameterSchema @@ -42,7 +42,7 @@ def page_repository(rid): tags: - repository-related delete: - description: Deletes a repository. + summary: Deletes a repository. parameters: - in: path schema: IntegerParameterSchema @@ -72,7 +72,7 @@ def page_repository(rid): tags: - repository-related patch: - description: Updates a repository. + summary: Updates a repository. requestBody: required: true content: diff --git a/code/backend/nest_backend/routes/users/login.py b/code/backend/nest_backend/routes/users/login.py index cb4640f..78e4ee4 100644 --- a/code/backend/nest_backend/routes/users/login.py +++ b/code/backend/nest_backend/routes/users/login.py @@ -11,7 +11,7 @@ def page_login(): """ --- post: - description: Attempt login. + summary: Attempt login. requestBody: required: true content: diff --git a/code/backend/nest_backend/routes/users/user.py b/code/backend/nest_backend/routes/users/user.py index 587ce0b..b44b3e0 100644 --- a/code/backend/nest_backend/routes/users/user.py +++ b/code/backend/nest_backend/routes/users/user.py @@ -11,7 +11,7 @@ def page_user(email): """ --- get: - description: Get details about a user. + summary: Get details about a user. parameters: - in: path schema: EmailParameterSchema @@ -40,7 +40,7 @@ def page_user(email): tags: - user-related delete: - description: Deletes a user. + summary: Deletes a user. parameters: - in: path schema: EmailParameterSchema @@ -77,7 +77,7 @@ def page_user(email): - user-related - admin-only patch: - description: Updates a user. + summary: Updates a user. parameters: - in: path schema: EmailParameterSchema diff --git a/code/backend/nest_backend/routes/users/users.py b/code/backend/nest_backend/routes/users/users.py index a99bf02..21c9e2f 100644 --- a/code/backend/nest_backend/routes/users/users.py +++ b/code/backend/nest_backend/routes/users/users.py @@ -11,7 +11,7 @@ def page_users(): """ --- get: - description: Get a list of users. + summary: Get a list of users. responses: '200': description: A list of User schemas, incapsulated in Success. @@ -29,7 +29,7 @@ def page_users(): - user-related - admin-only post: - description: Creates a user. + summary: Creates a user. requestBody: required: true content: