Skip to content

Commit

Permalink
Merge pull request #171 from DecentralCardGame/170-streamline-rest-ro…
Browse files Browse the repository at this point in the history
…ute-names

Streamlined query names
  • Loading branch information
lxgr-linux authored Oct 15, 2023
2 parents 8838ab2 + fb65292 commit 35bc0a5
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions proto/cardchain/cardchain/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,76 +23,76 @@ option go_package = "github.com/DecentralCardGame/Cardchain/x/cardchain/types";
service Query {
// Parameters queries the parameters of the module.
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
option (google.api.http).get = "/DecentralCardGame/cardchain/cardchain/params";
option (google.api.http).get = "/DecentralCardGame/Cardchain/cardchain/params";
}
// Queries a list of QCard items.
rpc QCard(QueryQCardRequest) returns (OutpCard) {
option (google.api.http).get = "/DecentralCardGame/cardchain/cardchain/q_card/{cardId}";
option (google.api.http).get = "/DecentralCardGame/Cardchain/cardchain/q_card/{cardId}";
}

// Queries a list of QCardContent items.
rpc QCardContent(QueryQCardContentRequest) returns (QueryQCardContentResponse) {
option (google.api.http).get = "/DecentralCardGame/cardchain/cardchain/q_card_content/{cardId}";
option (google.api.http).get = "/DecentralCardGame/Cardchain/cardchain/q_card_content/{cardId}";
}

// Queries a list of QUser items.
rpc QUser(QueryQUserRequest) returns (User) {
option (google.api.http).get = "/DecentralCardGame/cardchain/cardchain/q_user/{address}";
option (google.api.http).get = "/DecentralCardGame/Cardchain/cardchain/q_user/{address}";
}

// Queries a list of QCardchainInfo items.
rpc QCardchainInfo(QueryQCardchainInfoRequest) returns (QueryQCardchainInfoResponse) {
option (google.api.http).get = "/DecentralCardGame/cardchain/cardchain/q_cardchain_info";
option (google.api.http).get = "/DecentralCardGame/Cardchain/cardchain/q_cardchain_info";
}

// Queries a list of QVotingResults items.
rpc QVotingResults(QueryQVotingResultsRequest) returns (QueryQVotingResultsResponse) {
option (google.api.http).get = "/DecentralCardGame/cardchain/cardchain/q_voting_results";
option (google.api.http).get = "/DecentralCardGame/Cardchain/cardchain/q_voting_results";
}

// Queries a list of QVotableCards items.
rpc QVotableCards(QueryQVotableCardsRequest) returns (QueryQVotableCardsResponse) {
option (google.api.http).get = "/DecentralCardGame/cardchain/cardchain/q_votable_cards/{address}";
option (google.api.http).get = "/DecentralCardGame/Cardchain/cardchain/q_votable_cards/{address}";
}

// Queries a list of QCards items.
rpc QCards(QueryQCardsRequest) returns (QueryQCardsResponse) {
option (google.api.http).get = "/DecentralCardGame/cardchain/cardchain/q_cards/{status}";
option (google.api.http).get = "/DecentralCardGame/Cardchain/cardchain/q_cards/{status}";
}

// Queries a list of QMatch items.
rpc QMatch(QueryQMatchRequest) returns (Match) {
option (google.api.http).get = "/DecentralCardGame/cardchain/cardchain/q_match/{matchId}";
option (google.api.http).get = "/DecentralCardGame/Cardchain/cardchain/q_match/{matchId}";
}

// Queries a list of QSet items.
rpc QSet(QueryQSetRequest) returns (OutpSet) {
option (google.api.http).get =
"/DecentralCardGame/cardchain/cardchain/q_set/{setId}"; }
"/DecentralCardGame/Cardchain/cardchain/q_set/{setId}"; }

// Queries a list of QSellOffer items.
rpc QSellOffer(QueryQSellOfferRequest) returns (SellOffer) { option
(google.api.http).get =
"/DecentralCardGame/cardchain/cardchain/q_sell_offer/{sellOfferId}"; }
"/DecentralCardGame/Cardchain/cardchain/q_sell_offer/{sellOfferId}"; }

// Queries a list of QCouncil items.
rpc QCouncil(QueryQCouncilRequest) returns (Council) { option
(google.api.http).get =
"/DecentralCardGame/cardchain/cardchain/q_council/{councilId}"; }
"/DecentralCardGame/Cardchain/cardchain/q_council/{councilId}"; }

// Queries a list of QMatches items.
rpc QMatches(QueryQMatchesRequest) returns (QueryQMatchesResponse) {
option (google.api.http).get =
"/DecentralCardGame/cardchain/cardchain/q_matches"; }
"/DecentralCardGame/Cardchain/cardchain/q_matches"; }

// Queries a list of QSellOffers items.
rpc QSellOffers(QueryQSellOffersRequest) returns
(QueryQSellOffersResponse) { option (google.api.http).get =
"/DecentralCardGame/cardchain/cardchain/q_sell_offers/{status}"; }
"/DecentralCardGame/Cardchain/cardchain/q_sell_offers/{status}"; }

// Queries a list of QServer items.
rpc QServer(QueryQServerRequest) returns (Server) { option
(google.api.http).get = "/DecentralCardGame/cardchain/cardchain/q_server/{id}";
(google.api.http).get = "/DecentralCardGame/Cardchain/cardchain/q_server/{id}";
}

// Queries a list of QSets items.
Expand Down

0 comments on commit 35bc0a5

Please sign in to comment.