diff --git a/docs/docs.go b/docs/docs.go index b27877dd..a7837d6a 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -107,6 +107,14 @@ const docTemplate = `{ "tags": [ "Sponsor" ], + "parameters": [ + { + "type": "string", + "description": "network", + "name": "network", + "in": "query" + } + ], "responses": { "200": { "description": "OK" diff --git a/docs/swagger.json b/docs/swagger.json index 0350bbd5..1f1f8b81 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -96,6 +96,14 @@ "tags": [ "Sponsor" ], + "parameters": [ + { + "type": "string", + "description": "network", + "name": "network", + "in": "query" + } + ], "responses": { "200": { "description": "OK" diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 59d6bbc4..b53d21a3 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -114,6 +114,11 @@ paths: consumes: - application/json description: get the support strategy + parameters: + - description: network + in: query + name: network + type: string produces: - application/json responses: diff --git a/rpc_server/api/v1/get_support_strategy.go b/rpc_server/api/v1/get_support_strategy.go index 63b587e1..8cd0ab48 100644 --- a/rpc_server/api/v1/get_support_strategy.go +++ b/rpc_server/api/v1/get_support_strategy.go @@ -14,6 +14,7 @@ import ( // @Accept json // @Produce json // @Success 200 +// @Param network query string false "network" // @Router /api/v1/get-support-strategy [GET] // @Security JWT func GetSupportStrategy(c *gin.Context) {