From 7979cf6a42d0106fef5fb025f98a4edee74d945e Mon Sep 17 00:00:00 2001 From: Richard Kenigs Date: Tue, 8 Oct 2024 16:23:47 +0200 Subject: [PATCH 1/2] update app dir docs, add enums, add status query --- openapi/app-directory/app-dir.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/openapi/app-directory/app-dir.yml b/openapi/app-directory/app-dir.yml index 457114f..3a13e52 100644 --- a/openapi/app-directory/app-dir.yml +++ b/openapi/app-directory/app-dir.yml @@ -43,14 +43,41 @@ paths: name: chain schema: type: string + enum: + - moonbeam + - moonriver example: moonbeam description: Filter by blockchain network (e.g., moonbeam) - in: query name: category schema: type: string + enum: + - defi + - dex + - bridges + - lending + - nfts + - gaming + - social + - wallets + - dao + - other example: dex description: Filter by category (e.g., dex) + - in: query + name: status + schema: + type: string + enum: + - active + - inactive + - review + - archived + - deleted + example: dex + default: active + description: Filter by status (e.g., active, deleted) responses: '200': description: A list of projects matching the query parameters. From e0b1bbaf3637f9abf4d84df8cb23d3abbe4899f0 Mon Sep 17 00:00:00 2001 From: Richard Kenigs Date: Tue, 8 Oct 2024 16:49:42 +0200 Subject: [PATCH 2/2] fix --- openapi/app-directory/app-dir.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/openapi/app-directory/app-dir.yml b/openapi/app-directory/app-dir.yml index 3a13e52..5a76a8f 100644 --- a/openapi/app-directory/app-dir.yml +++ b/openapi/app-directory/app-dir.yml @@ -63,7 +63,6 @@ paths: - wallets - dao - other - example: dex description: Filter by category (e.g., dex) - in: query name: status @@ -75,9 +74,7 @@ paths: - review - archived - deleted - example: dex - default: active - description: Filter by status (e.g., active, deleted) + description: Filter by status (e.g., active, deleted). If nothing is selected then it will return active projects. responses: '200': description: A list of projects matching the query parameters.