Add protobuf services for various entities#366
Draft
ivucica wants to merge 2 commits intobenjaminkomen:masterfrom
Draft
Add protobuf services for various entities#366ivucica wants to merge 2 commits intobenjaminkomen:masterfrom
ivucica wants to merge 2 commits intobenjaminkomen:masterfrom
Conversation
Add a new protobuf file `proto/tibiawiki.proto` implementing gRPC services for various entities. * Define the `Book` service with `GetBook` and `ListBooks` methods using google.api.http annotations. * Define the `Building` service with `GetBuilding` and `ListBuildings` methods using google.api.http annotations. * Define the `Corpse` service with `GetCorpse` and `ListCorpses` methods using google.api.http annotations. * Define the `Creature` service with `GetCreature` and `ListCreatures` methods using google.api.http annotations. * Define the `Effect` service with `GetEffect` and `ListEffects` methods using google.api.http annotations. * Define the `HuntingPlace` service with `GetHuntingPlace` and `ListHuntingPlaces` methods using google.api.http annotations. * Define the `Item` service with `GetItem` and `ListItems` methods using google.api.http annotations. * Define the `Key` service with `GetKey` and `ListKeys` methods using google.api.http annotations. * Define the `Location` service with `GetLocation` and `ListLocations` methods using google.api.http annotations. * Define the `LootStatistic` service with `GetLootStatistic` and `ListLootStatistics` methods using google.api.http annotations. * Define the `Missile` service with `GetMissile` and `ListMissiles` methods using google.api.http annotations. * Define the `Mount` service with `GetMount` and `ListMounts` methods using google.api.http annotations. * Define the `NPC` service with `GetNPC` and `ListNPCs` methods using google.api.http annotations. * Define the `Object` service with `GetObject` and `ListObjects` methods using google.api.http annotations. * Define the `Outfit` service with `GetOutfit` and `ListOutfits` methods using google.api.http annotations. * Define the `Quest` service with `GetQuest` and `ListQuests` methods using google.api.http annotations. * Define the `Spell` service with `GetSpell` and `ListSpells` methods using google.api.http annotations. * Define the `Street` service with `GetStreet` and `ListStreets` methods using google.api.http annotations. * Add docstrings to services and methods. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/benjaminkomen/TibiaWikiApi?shareId=XXXX-XXXX-XXXX-XXXX).
* **Book service** - Add docstrings for `GetBook` and `ListBooks` methods * **Building service** - Add docstrings for `GetBuilding` and `ListBuildings` methods * **Corpse service** - Add docstrings for `GetCorpse` and `ListCorpses` methods * **Creature service** - Add docstrings for `GetCreature` and `ListCreatures` methods * **Effect service** - Add docstrings for `GetEffect` and `ListEffects` methods * ...etc
Author
|
Note, this was experimental and not intended to end up as an actual visible PR. While it would be just cool to have a protobuf definition, I actually intend to drop this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new protobuf file
proto/tibiawiki.protoimplementing gRPC services for various entities.Bookservice withGetBookandListBooksmethods using google.api.http annotations.Buildingservice withGetBuildingandListBuildingsmethods using google.api.http annotations.Corpseservice withGetCorpseandListCorpsesmethods using google.api.http annotations.Creatureservice withGetCreatureandListCreaturesmethods using google.api.http annotations.Effectservice withGetEffectandListEffectsmethods using google.api.http annotations.HuntingPlaceservice withGetHuntingPlaceandListHuntingPlacesmethods using google.api.http annotations.Itemservice withGetItemandListItemsmethods using google.api.http annotations.Keyservice withGetKeyandListKeysmethods using google.api.http annotations.Locationservice withGetLocationandListLocationsmethods using google.api.http annotations.LootStatisticservice withGetLootStatisticandListLootStatisticsmethods using google.api.http annotations.Missileservice withGetMissileandListMissilesmethods using google.api.http annotations.Mountservice withGetMountandListMountsmethods using google.api.http annotations.NPCservice withGetNPCandListNPCsmethods using google.api.http annotations.Objectservice withGetObjectandListObjectsmethods using google.api.http annotations.Outfitservice withGetOutfitandListOutfitsmethods using google.api.http annotations.Questservice withGetQuestandListQuestsmethods using google.api.http annotations.Spellservice withGetSpellandListSpellsmethods using google.api.http annotations.Streetservice withGetStreetandListStreetsmethods using google.api.http annotations.For more details, open the Copilot Workspace session.