Skip to content

Commit

Permalink
fixed quottery endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
0xluk committed Sep 14, 2024
1 parent d02ab29 commit 90854ca
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 39 deletions.
2 changes: 1 addition & 1 deletion proto/v1/quottery_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ service QuotteryService {

rpc GetBettorsByBetOption(GetBettorsByBetOptionRequest) returns (BetOptionBettors) {
option (google.api.http) = {
get: "/v1/getBettorsByBetOption"
get: "/v1/quottery/getBettorsByBetOption"
};
};
}
77 changes: 39 additions & 38 deletions swagger/qubic-integration-rpc.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -1218,6 +1218,7 @@
},
"host": "api.qubic.org",
"schemes": [
"http",
"https"
]
}

0 comments on commit 90854ca

Please sign in to comment.