From 8ee5f32975a478c4b27afc8796d63014da9ba74c Mon Sep 17 00:00:00 2001 From: yoxira Date: Tue, 12 Nov 2024 01:18:00 +0500 Subject: [PATCH] chore: add `address` param to the `/delegates/get` endpoint --- specification/delegates/GetDelegate/GetDelegateParams.yaml | 6 ++++++ specification/openapi.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/specification/delegates/GetDelegate/GetDelegateParams.yaml b/specification/delegates/GetDelegate/GetDelegateParams.yaml index 142abf0..2ce5377 100644 --- a/specification/delegates/GetDelegate/GetDelegateParams.yaml +++ b/specification/delegates/GetDelegate/GetDelegateParams.yaml @@ -10,3 +10,9 @@ schema: type: string example: ef5e78a3d02e6d82f4ac0c5b8923c1b86185bd17c27c9ac027c20ec62db79a84 +- name: address + in: query + required: false + schema: + type: string + example: U11651572364276578835 diff --git a/specification/openapi.yaml b/specification/openapi.yaml index 40bf3a7..c0e3e54 100644 --- a/specification/openapi.yaml +++ b/specification/openapi.yaml @@ -366,7 +366,7 @@ paths: tags: - Delegates and Voting operationId: getDelegateInfo - description: Get delegate info by `username` or `publicKey` + description: Get delegate info by `username`, `publicKey`, or `address` parameters: $ref: "delegates/GetDelegate/GetDelegateParams.yaml" responses: