From 90854cacd2d322768efa1d4aae910c070d1e63c3 Mon Sep 17 00:00:00 2001 From: 0xluk Date: Sat, 14 Sep 2024 10:22:19 +0600 Subject: [PATCH] fixed quottery endpoint --- proto/v1/quottery_service.proto | 2 +- swagger/qubic-integration-rpc.swagger.json | 77 +++++++++++----------- 2 files changed, 40 insertions(+), 39 deletions(-) diff --git a/proto/v1/quottery_service.proto b/proto/v1/quottery_service.proto index d41c32c..fb86914 100644 --- a/proto/v1/quottery_service.proto +++ b/proto/v1/quottery_service.proto @@ -48,7 +48,7 @@ service QuotteryService { rpc GetBettorsByBetOption(GetBettorsByBetOptionRequest) returns (BetOptionBettors) { option (google.api.http) = { - get: "/v1/getBettorsByBetOption" + get: "/v1/quottery/getBettorsByBetOption" }; }; } \ No newline at end of file diff --git a/swagger/qubic-integration-rpc.swagger.json b/swagger/qubic-integration-rpc.swagger.json index 8507899..81c431e 100644 --- a/swagger/qubic-integration-rpc.swagger.json +++ b/swagger/qubic-integration-rpc.swagger.json @@ -226,44 +226,6 @@ ] } }, - "/v1/getBettorsByBetOption": { - "get": { - "operationId": "QuotteryService_GetBettorsByBetOption", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1BetOptionBettors" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "betId", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "betOption", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - } - ], - "tags": [ - "QuotteryService" - ] - } - }, "/v1/quottery/getActiveBets": { "get": { "operationId": "QuotteryService_GetActiveBets", @@ -369,6 +331,44 @@ ] } }, + "/v1/quottery/getBettorsByBetOption": { + "get": { + "operationId": "QuotteryService_GetBettorsByBetOption", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1BetOptionBettors" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "betId", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "betOption", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + } + ], + "tags": [ + "QuotteryService" + ] + } + }, "/v1/qx/getAssetAskOrders": { "get": { "operationId": "QxService_GetAssetAskOrders", @@ -1218,6 +1218,7 @@ }, "host": "api.qubic.org", "schemes": [ + "http", "https" ] }