From 86bb61a4973f8bbb1cbb09c32c29176945c8c34c Mon Sep 17 00:00:00 2001 From: teranixbq Date: Mon, 11 Dec 2023 19:59:33 +0700 Subject: [PATCH] feat : add filter --- swagger/apidoc-user.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/swagger/apidoc-user.json b/swagger/apidoc-user.json index 4c4ba64..2fc29d9 100644 --- a/swagger/apidoc-user.json +++ b/swagger/apidoc-user.json @@ -1117,6 +1117,9 @@ "summary": "view all article", "description": "view all articles with pagination", "parameters": [ + { + "$ref": "#/components/parameters/FilterArticle" + }, { "$ref": "#/components/parameters/search" }, @@ -2587,6 +2590,25 @@ "ditolak" ] } + },"FilterArticle": { + "name": "filter", + "in": "query", + "description": "filter category", + "schema": { + "type": "string", + "enum": [ + "plastik", + "kaca", + "logam", + "organik", + "kertas", + "kaleng", + "minyak", + "elektronik", + "tekstil", + "baterai" + ] + } }, "idTransaction": { "name": "idTransaction",