forked from dm94/stiletto-node-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stiletto.json
1 lines (1 loc) · 73.7 KB
/
stiletto.json
1
{"openapi":"3.0.3","info":{"title":"stiletto-node-api","description":"API for [Stiletto Web](https://github.com/dm94/stiletto-web)","version":"3.0.0","contact":{"name":"Daniel Martín","url":"https://github.com/dm94/stiletto-node-api/issues"}},"components":{"securitySchemes":{"apiKey":{"type":"apiKey","name":"apiKey","in":"header"},"token":{"type":"http","scheme":"bearer"}},"schemas":{"UserSchema":{"type":"object","properties":{"nickname":{"type":"string"},"discordtag":{"type":"string"},"discordid":{"type":"string"},"clanid":{"type":"integer"},"clanname":{"type":"string"},"leaderid":{"type":"string"},"serverdiscord":{"type":"string"}},"required":["discordtag","discordid"]},"LoginSchema":{"type":"object","properties":{"discordid":{"type":"string"},"token":{"type":"string"}},"required":["discordid","token"]},"ClanSchema":{"type":"object","properties":{"clanid":{"type":"number"},"name":{"type":"string"},"discordid":{"type":"string"},"leaderid":{"type":"string"},"invitelink":{"type":"string"},"recruitment":{"type":"boolean"},"flagcolor":{"type":"string"},"symbol":{"type":"string"},"region":{"type":"string"},"discordTag":{"type":"string"}},"required":["clanid","name","leaderid","recruitment","region","discordTag"]},"ClusterSchema":{"type":"object","properties":{"region":{"type":"string"},"name":{"type":"string"},"clan_limit":{"type":"integer"},"crossplay":{"type":"boolean"}},"required":["region","name","clan_limit","crossplay"]},"TradeSchema":{"type":"object","properties":{"idtrade":{"type":"number"},"discordid":{"type":"string"},"type":{"anyOf":[{"type":"string","enum":["Supply"]},{"type":"string","enum":["Demand"]}]},"resource":{"type":"string"},"amount":{"type":"number"},"quality":{"type":"number"},"region":{"type":"string"},"nickname":{"type":"string"},"discordtag":{"type":"string"},"price":{"type":"number"}},"required":["idtrade","discordid","type","resource","discordtag","price"]},"MemberSchema":{"type":"object","properties":{"discordid":{"type":"string"},"nickname":{"type":"string"},"discordtag":{"type":"string"},"leaderid":{"type":"string"}},"required":["discordid","discordtag","leaderid"]},"PermissionsSchema":{"type":"object","properties":{"clanid":{"type":"integer"},"discordid":{"type":"string"},"request":{"type":"boolean"},"kickmembers":{"type":"boolean"},"walkers":{"type":"boolean"},"bot":{"type":"boolean"},"diplomacy":{"type":"boolean"}},"required":["clanid","discordid","request","kickmembers","walkers","bot","diplomacy"]},"MemberRequestSchema":{"type":"object","properties":{"discordid":{"type":"string"},"nickname":{"type":"string"},"discordtag":{"type":"string"},"leaderid":{"type":"string"},"message":{"type":"string"}},"required":["discordid","discordtag","leaderid"]},"RelationshipSchema":{"type":"object","properties":{"leaderid":{"type":"string"},"id":{"type":"integer"},"typed":{"0":"NAP","1":"ALLY","2":"WAR","30":"FALSE_NAP","31":"FALSE_ALLY","32":"FALSE_WAR","NAP":0,"ALLY":1,"WAR":2,"FALSE_NAP":30,"FALSE_ALLY":31,"FALSE_WAR":32,"type":"integer"},"flagcolor":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"}},"required":["leaderid","id","typed","flagcolor","name","symbol"]},"MapSchema":{"type":"object","properties":{"mapid":{"type":"number"},"typemap":{"type":"string"},"discordid":{"type":"string"},"name":{"type":"string"},"dateofburning":{"type":"string"},"pass":{"type":"string"},"allowedit":{"type":"boolean"}},"required":["mapid","typemap","discordid","name","allowedit"]},"ResourceSchema":{"type":"object","properties":{"resourceid":{"type":"number"},"mapid":{"type":"number"},"resourcetype":{"type":"string"},"quality":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"},"token":{"type":"string"},"typemap":{"type":"string"},"description":{"type":"string"},"lastharvested":{"type":"string"}},"required":["resourceid","mapid","resourcetype","quality","x","y","typemap"]},"WalkerSchema":{"type":"object","properties":{"leaderid":{"type":"string"},"discordid":{"type":"string"},"walkerid":{"type":"number"},"name":{"type":"string"},"ownerUser":{"type":"string"},"lastuser":{"type":"string"},"datelastuse":{"type":"string"},"type":{"type":"string"},"use":{"type":"string"},"isReady":{"type":"boolean"},"description":{"type":"string"}},"required":["discordid","walkerid","name","isReady"]},"RecipeSchema":{"type":"object","properties":{"name":{"type":"string"},"count":{"type":"number"}},"required":["name","count"]},"RecipeListSchema":{"type":"object","properties":{"token":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"count":{"type":"number"}},"required":["name","count"]}}},"required":["token","items"]},"TechTreeSchema":{"type":"object","properties":{"discordtag":{"type":"string"},"Vitamins":{"type":"array","items":{"type":"string"}},"Equipment":{"type":"array","items":{"type":"string"}},"Crafting":{"type":"array","items":{"type":"string"}},"Construction":{"type":"array","items":{"type":"string"}},"Walkers":{"type":"array","items":{"type":"string"}}},"required":["discordtag","Vitamins","Equipment","Crafting","Construction","Walkers"]},"TechUserSchema":{"type":"object","properties":{"discordtag":{"type":"string"}},"required":["discordtag"]},"DiscordConfigBotSchema":{"type":"object","properties":{"serverdiscordid":{"type":"string"},"botlanguaje":{"anyOf":[{"type":"string","enum":["en"]},{"type":"string","enum":["es"]},{"type":"string","enum":["ru"]},{"type":"string","enum":["fr"]},{"type":"string","enum":["de"]}]},"readclanlog":{"type":"boolean"},"automatickick":{"type":"boolean"},"setnotreadypvp":{"type":"boolean"},"walkeralarm":{"type":"boolean"}},"required":["serverdiscordid","botlanguaje","readclanlog","automatickick","setnotreadypvp","walkeralarm"]}}},"paths":{"/clans/":{"get":{"operationId":"getClans","summary":"getClans","tags":["clans"],"description":"Return the list of clans","parameters":[{"schema":{"type":"integer","default":10},"in":"query","name":"pageSize","required":false},{"schema":{"type":"integer","default":1},"in":"query","name":"page","required":false},{"schema":{"type":"string"},"in":"query","name":"name","required":false,"description":"Filter by Clan name"},{"schema":{"type":"string"},"in":"query","name":"region","required":false,"description":"Filter by region"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"clanid":{"type":"number"},"name":{"type":"string"},"discordid":{"type":"string"},"leaderid":{"type":"string"},"invitelink":{"type":"string"},"recruitment":{"type":"boolean"},"flagcolor":{"type":"string"},"symbol":{"type":"string"},"region":{"type":"string"},"discordTag":{"type":"string"}},"required":["clanid","name","leaderid","recruitment","region","discordTag"]}}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"post":{"operationId":"createClan","summary":"createClan","tags":["clans"],"description":"To create a new clan","parameters":[{"schema":{"type":"string"},"in":"query","name":"clanname","required":true,"description":"Name of Clan"},{"schema":{"type":"string"},"in":"query","name":"clancolor","required":false,"description":"The colour of the clan in hexadecimal"},{"schema":{"type":"string"},"in":"query","name":"clandiscord","required":false,"description":"Discord server invitation code"},{"schema":{"type":"string"},"in":"query","name":"region","required":false,"description":"Region of the clan"},{"schema":{"type":"string"},"in":"query","name":"symbol","required":false,"description":"Symbol of the clan"},{"schema":{"type":"boolean"},"in":"query","name":"recruit","required":false}],"security":[{"token":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"delete":{"operationId":"leaveClan","summary":"leaveClan","tags":["clans"],"description":"Leave a clan","security":[{"token":[]}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/bot/{discordid}/tech":{"get":{"operationId":"getWhoHasLearn","summary":"getWhoHasLearn","tags":["bot","tech"],"description":"Give who in your clan has learned something","parameters":[{"schema":{"type":"string"},"in":"query","name":"tech","required":true,"description":"Item name"},{"schema":{"type":"string","enum":["Vitamins","Equipment","Construction","Crafting","Walkers"]},"in":"query","name":"tree","required":true,"description":"Technology tree of the item"},{"schema":{"type":"string"},"in":"path","name":"discordid","required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"discordtag":{"type":"string"}},"required":["discordtag"]}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"post":{"operationId":"addTechByBot","summary":"addTechByBot","tags":["bot","tech"],"description":"Adds the list of learned technologies to that user.","parameters":[{"schema":{"type":"string"},"in":"query","name":"tech","required":true,"description":"Item name"},{"schema":{"type":"string","enum":["Vitamins","Equipment","Construction","Crafting","Walkers"]},"in":"query","name":"tree","required":true,"description":"Technology tree of the item"},{"schema":{"type":"string"},"in":"path","name":"discordid","required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"discordtag":{"type":"string"},"Vitamins":{"type":"array","items":{"type":"string"}},"Equipment":{"type":"array","items":{"type":"string"}},"Crafting":{"type":"array","items":{"type":"string"}},"Construction":{"type":"array","items":{"type":"string"}},"Walkers":{"type":"array","items":{"type":"string"}}},"required":["discordtag","Vitamins","Equipment","Crafting","Construction","Walkers"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/bot/trades":{"post":{"operationId":"createTradefromBot","summary":"createTradefromBot","tags":["bot","tech"],"description":"For add a trade from bot","parameters":[{"schema":{"type":"string"},"in":"query","name":"discordid","required":true,"description":"User Discord ID"},{"schema":{"type":"string","enum":["Supply","Demand"]},"in":"query","name":"type","required":true,"description":"Type of trade"},{"schema":{"type":"string"},"in":"query","name":"resource","required":true,"description":"Type of resource. Example Aloe"},{"schema":{"type":"integer"},"in":"query","name":"amount","required":false,"description":"Amount of the resource"},{"schema":{"type":"integer"},"in":"query","name":"quality","required":false,"description":"Quality of the resource. Max 100"},{"schema":{"type":"string"},"in":"query","name":"region","required":true,"description":"Region of the trade. EU, NA, SA , ASIA, OCE"},{"schema":{"type":"integer"},"in":"query","name":"price","required":true,"description":"Price per resource"}],"security":[{"apiKey":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/clusters/":{"get":{"operationId":"getClusters","summary":"getClusters","tags":["clusters"],"description":"Return the list of clusters","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"region":{"type":"string"},"name":{"type":"string"},"clan_limit":{"type":"integer"},"crossplay":{"type":"boolean"}},"required":["region","name","clan_limit","crossplay"]}}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/maps/":{"get":{"operationId":"getMaps","summary":"getMaps","tags":["maps"],"description":"Return your map list and your clan's maps","security":[{"token":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"mapid":{"type":"number"},"typemap":{"type":"string"},"discordid":{"type":"string"},"name":{"type":"string"},"dateofburning":{"type":"string"},"pass":{"type":"string"},"allowedit":{"type":"boolean"}},"required":["mapid","typemap","discordid","name","allowedit"]}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"post":{"operationId":"addMap","summary":"addMap","tags":["maps"],"description":"To create a map. The map type has to be one defined in the map json. The bearer is required if you want it to be assigned to a user.","parameters":[{"schema":{"type":"string"},"in":"query","name":"mapname","required":true,"description":"Map name"},{"schema":{"type":"string"},"in":"query","name":"mapdate","required":true,"description":"Date of the day the map was burned. aaaa-mm-dd"},{"schema":{"type":"string","enum":["Canyon_new","CanyonB_new","SleepingGiants_new","SleepingGiantsB_new","Volcanic_new","Crater_new","Volcanyon_new","AncientCity_new","KaliSpires_new","WormMap_new","MiniOasis_new"]},"in":"query","name":"maptype","required":true,"description":"Name of the type of map"}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"string"},"IdMap":{"type":"integer"},"PassMap":{"type":"string"}},"required":["Success","IdMap","PassMap"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/recipes/":{"post":{"operationId":"addRecipe","summary":"addRecipe","tags":["recipes"],"description":"Add a list of recipes that can then be shared","parameters":[{"schema":{"type":"string"},"in":"query","name":"items","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"count":{"type":"number"}},"required":["name","count"]}}},"required":["token","items"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/recipes/{recipetoken}":{"get":{"operationId":"getRecipe","summary":"getRecipe","tags":["recipes"],"description":"Returns an array with all the items of that recipe","parameters":[{"schema":{"type":"string"},"in":"path","name":"recipetoken","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"count":{"type":"number"}},"required":["name","count"]}}},"required":["token","items"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/trades/":{"get":{"operationId":"getTrades","summary":"getTrades","tags":["trades"],"description":"Returns the trades","parameters":[{"schema":{"type":"integer","default":10,"minimum":1,"maximum":100},"in":"query","name":"pageSize","required":false},{"schema":{"type":"integer","default":1,"minimum":1},"in":"query","name":"page","required":false},{"schema":{"type":"string","enum":["Supply","Demand"]},"in":"query","name":"type","required":false,"description":"Type of trade"},{"schema":{"type":"string"},"in":"query","name":"resource","required":false,"description":"Type of resource. Example Aloe"},{"schema":{"type":"string"},"in":"query","name":"region","required":false,"description":"Region of the trade. EU, NA, SA , ASIA, OCE"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"idtrade":{"type":"number"},"discordid":{"type":"string"},"type":{"anyOf":[{"type":"string","enum":["Supply"]},{"type":"string","enum":["Demand"]}]},"resource":{"type":"string"},"amount":{"type":"number"},"quality":{"type":"number"},"region":{"type":"string"},"nickname":{"type":"string"},"discordtag":{"type":"string"},"price":{"type":"number"}},"required":["idtrade","discordid","type","resource","discordtag","price"]}}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"post":{"operationId":"createTrade","summary":"createTrade","tags":["trades"],"description":"For add a trade","parameters":[{"schema":{"type":"string","enum":["Supply","Demand"]},"in":"query","name":"type","required":true,"description":"Type of trade"},{"schema":{"type":"string"},"in":"query","name":"resource","required":true,"description":"Type of resource. Example Aloe"},{"schema":{"type":"integer"},"in":"query","name":"amount","required":false,"description":"Amount of the resource"},{"schema":{"type":"integer"},"in":"query","name":"quality","required":false,"description":"Quality of the resource. Max 100"},{"schema":{"type":"string"},"in":"query","name":"region","required":true,"description":"Region of the trade. EU, NA, SA , ASIA, OCE"},{"schema":{"type":"integer"},"in":"query","name":"price","required":true,"description":"Price per resource"}],"security":[{"token":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/trades/{tradeId}":{"delete":{"operationId":"deleteTrade","summary":"deleteTrade","tags":["trades"],"description":"Delete the trade","parameters":[{"schema":{"type":"integer"},"in":"path","name":"tradeId","required":true}],"security":[{"token":[]}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/users/":{"get":{"operationId":"getUser","summary":"getUser","tags":["users"],"description":"Returns a user information","security":[{"token":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"nickname":{"type":"string"},"discordtag":{"type":"string"},"discordid":{"type":"string"},"clanid":{"type":"integer"},"clanname":{"type":"string"},"leaderid":{"type":"string"},"serverdiscord":{"type":"string"}},"required":["discordtag","discordid"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"put":{"operationId":"addNick","summary":"addNick","tags":["users"],"description":"Update a user's game name","parameters":[{"schema":{"type":"string"},"in":"query","name":"dataupdate","required":true,"description":"Nick to be added"}],"security":[{"token":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"delete":{"operationId":"deleteUser","summary":"deleteUser","tags":["users"],"description":"Delete the user","security":[{"token":[]}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/walkers/":{"get":{"operationId":"getWalkers","summary":"getWalkers","tags":["walkers"],"description":"Return walkers from a discord server","parameters":[{"schema":{"type":"integer","default":10,"minimum":1,"maximum":100},"in":"query","name":"pageSize","required":false},{"schema":{"type":"integer","default":1,"minimum":1},"in":"query","name":"page","required":false},{"schema":{"type":"string"},"in":"query","name":"name","required":false},{"schema":{"type":"string"},"in":"query","name":"owner","required":false},{"schema":{"type":"string"},"in":"query","name":"lastuser","required":false},{"schema":{"type":"string"},"in":"query","name":"walkerid","required":false},{"schema":{"type":"boolean"},"in":"query","name":"ready","required":false},{"schema":{"type":"string","enum":["pvp","farming","personal","ram"]},"in":"query","name":"use","required":false},{"schema":{"type":"string","enum":["Buffalo","Camelop","Cobra","Dinghy","Domus","Falco","Firefly","Hornet","Mollusk","Panda","Proxy","Schmetterling","Nomad Spider","Stiletto","Titan","Toboggan","Tusker","Silur","Hercul","Balang","Raptor Sky"]},"in":"query","name":"type","required":false,"description":"Walker Type: Dinghy, Falco..."},{"schema":{"type":"string"},"in":"query","name":"description","required":false}],"security":[{"token":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"leaderid":{"type":"string"},"discordid":{"type":"string"},"walkerid":{"type":"number"},"name":{"type":"string"},"ownerUser":{"type":"string"},"lastuser":{"type":"string"},"datelastuse":{"type":"string"},"type":{"type":"string"},"use":{"type":"string"},"isReady":{"type":"boolean"},"description":{"type":"string"}},"required":["discordid","walkerid","name","isReady"]}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/clans/{clanid}/":{"get":{"operationId":"getClanInfo","summary":"getClanInfo","tags":["clans"],"description":"Return the information of the clan","parameters":[{"schema":{"type":"integer"},"in":"path","name":"clanid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"clanid":{"type":"number"},"name":{"type":"string"},"discordid":{"type":"string"},"leaderid":{"type":"string"},"invitelink":{"type":"string"},"recruitment":{"type":"boolean"},"flagcolor":{"type":"string"},"symbol":{"type":"string"},"region":{"type":"string"},"discordTag":{"type":"string"}},"required":["clanid","name","leaderid","recruitment","region","discordTag"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"put":{"operationId":"updateClan","summary":"updateClan","tags":["clans"],"description":"To update the clan. Only the leader can use this endpoint","parameters":[{"schema":{"type":"string"},"in":"query","name":"clanname","required":true,"description":"Name of Clan"},{"schema":{"type":"string"},"in":"query","name":"clancolor","required":false,"description":"The colour of the clan in hexadecimal"},{"schema":{"type":"string"},"in":"query","name":"clandiscord","required":false,"description":"Discord server invitation code"},{"schema":{"type":"string"},"in":"query","name":"region","required":false,"description":"Region of the clan"},{"schema":{"type":"string"},"in":"query","name":"symbol","required":false,"description":"Symbol of the clan"},{"schema":{"type":"boolean"},"in":"query","name":"recruit","required":false}],"security":[{"token":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"delete":{"operationId":"deleteClan","summary":"deleteClan","tags":["clans"],"description":"Delete a clan. It is necessary to be the leader of the clan in order to perform this action","parameters":[{"schema":{"type":"integer"},"in":"path","name":"clanid","required":true}],"security":[{"token":[]}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/bot/config/":{"get":{"operationId":"getBotConfigs","summary":"getBotConfigs","tags":["bot"],"description":"Get all Bot Configs","security":[{"apiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"serverdiscordid":{"type":"string"},"botlanguaje":{"anyOf":[{"type":"string","enum":["en"]},{"type":"string","enum":["es"]},{"type":"string","enum":["ru"]},{"type":"string","enum":["fr"]},{"type":"string","enum":["de"]}]},"readclanlog":{"type":"boolean"},"automatickick":{"type":"boolean"},"setnotreadypvp":{"type":"boolean"},"walkeralarm":{"type":"boolean"}},"required":["serverdiscordid","botlanguaje","readclanlog","automatickick","setnotreadypvp","walkeralarm"]}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/bot/config/{discordid}":{"get":{"operationId":"getDiscordConfigByServer","summary":"getDiscordConfigByServer","tags":["bot"],"description":"Get Discord Config By Server","parameters":[{"schema":{"type":"string"},"in":"path","name":"discordid","required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"serverdiscordid":{"type":"string"},"botlanguaje":{"anyOf":[{"type":"string","enum":["en"]},{"type":"string","enum":["es"]},{"type":"string","enum":["ru"]},{"type":"string","enum":["fr"]},{"type":"string","enum":["de"]}]},"readclanlog":{"type":"boolean"},"automatickick":{"type":"boolean"},"setnotreadypvp":{"type":"boolean"},"walkeralarm":{"type":"boolean"}},"required":["serverdiscordid","botlanguaje","readclanlog","automatickick","setnotreadypvp","walkeralarm"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"put":{"operationId":"updateBotConfigByServer","summary":"updateBotConfigByServer","tags":["bot"],"description":"Update Bot Config By Server","parameters":[{"schema":{"type":"string","maxLength":2,"default":"en","enum":["en","es","ru","fr","de"]},"in":"query","name":"languaje","required":false},{"schema":{"type":"boolean"},"in":"query","name":"clanlog","required":false},{"schema":{"type":"boolean"},"in":"query","name":"kick","required":false},{"schema":{"type":"boolean"},"in":"query","name":"readypvp","required":false},{"schema":{"type":"boolean"},"in":"query","name":"walkeralarm","required":false},{"schema":{"type":"string"},"in":"path","name":"discordid","required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/bot/walkers/":{"get":{"operationId":"getWalkersByServer","summary":"getWalkersByServer","tags":["bot","walkers"],"description":"Get Walkers by server","parameters":[{"schema":{"type":"string"},"in":"query","name":"discordid","required":true},{"schema":{"type":"integer","default":10,"minimum":1,"maximum":100},"in":"query","name":"pageSize","required":false},{"schema":{"type":"integer","default":1,"minimum":1},"in":"query","name":"page","required":false},{"schema":{"type":"string"},"in":"query","name":"name","required":false},{"schema":{"type":"string"},"in":"query","name":"owner","required":false},{"schema":{"type":"string"},"in":"query","name":"lastuser","required":false},{"schema":{"type":"string"},"in":"query","name":"walkerid","required":false},{"schema":{"type":"boolean"},"in":"query","name":"ready","required":false},{"schema":{"type":"string","enum":["pvp","farming","personal","ram"]},"in":"query","name":"use","required":false},{"schema":{"type":"string","enum":["Buffalo","Camelop","Cobra","Dinghy","Domus","Falco","Firefly","Hornet","Mollusk","Panda","Proxy","Schmetterling","Nomad Spider","Stiletto","Titan","Toboggan","Tusker","Silur","Hercul","Balang","Raptor Sky"]},"in":"query","name":"type","required":false,"description":"Walker Type: Dinghy, Falco..."},{"schema":{"type":"string"},"in":"query","name":"description","required":false}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"leaderid":{"type":"string"},"discordid":{"type":"string"},"walkerid":{"type":"number"},"name":{"type":"string"},"ownerUser":{"type":"string"},"lastuser":{"type":"string"},"datelastuse":{"type":"string"},"type":{"type":"string"},"use":{"type":"string"},"isReady":{"type":"boolean"},"description":{"type":"string"}},"required":["discordid","walkerid","name","isReady"]}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"post":{"operationId":"addWalker","summary":"addWalker","tags":["bot","walkers"],"description":"Add or update a walker","parameters":[{"schema":{"type":"string"},"in":"query","name":"walkerid","required":true},{"schema":{"type":"string"},"in":"query","name":"discordid","required":true},{"schema":{"type":"string"},"in":"query","name":"name","required":true},{"schema":{"type":"string"},"in":"query","name":"lastUser","required":true}],"security":[{"apiKey":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/bot/walkers/{discordid}":{"put":{"operationId":"botEditWalker","summary":"botEditWalker","tags":["bot","walkers"],"description":"If is PVP walker, it is marked as not ready","parameters":[{"schema":{"type":"string"},"in":"query","name":"walkerid","required":true},{"schema":{"type":"boolean"},"in":"query","name":"ready","required":true},{"schema":{"type":"string"},"in":"path","name":"discordid","required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/maps/{mapid}/":{"get":{"operationId":"getMap","summary":"getMap","tags":["maps"],"description":"Returns map information","parameters":[{"schema":{"type":"string"},"in":"query","name":"mappass","required":true,"description":"Pass for the map"},{"schema":{"type":"integer"},"in":"path","name":"mapid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"mapid":{"type":"number"},"typemap":{"type":"string"},"discordid":{"type":"string"},"name":{"type":"string"},"dateofburning":{"type":"string"},"pass":{"type":"string"},"allowedit":{"type":"boolean"}},"required":["mapid","typemap","discordid","name","allowedit"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"put":{"operationId":"editMap","summary":"editMap","tags":["maps"],"description":"Edit map data","parameters":[{"schema":{"type":"string"},"in":"query","name":"mappass","required":true,"description":"Password to view the map without login"},{"schema":{"type":"string"},"in":"query","name":"mapname","required":true,"description":"Map name"},{"schema":{"type":"string"},"in":"query","name":"mapdate","required":false,"description":"Date of the day the map was burned. aaaa-mm-dd"},{"schema":{"type":"boolean"},"in":"query","name":"allowediting","required":false,"description":"Shows whether the map can be edited with the password or not"},{"schema":{"type":"integer"},"in":"path","name":"mapid","required":true}],"security":[{"token":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"delete":{"operationId":"deleteMap","summary":"deleteMap","tags":["maps"],"description":"Delete a map, only the owner of the map can do this.","parameters":[{"schema":{"type":"integer"},"in":"path","name":"mapid","required":true}],"security":[{"token":[]}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/users/auth/":{"post":{"operationId":"authDiscord","summary":"authDiscord","tags":["users"],"description":"To create a new account with discord or get the token","parameters":[{"schema":{"type":"string"},"in":"query","name":"code","required":true,"description":"Discord Code"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"discordid":{"type":"string"},"token":{"type":"string"}},"required":["discordid","token"]}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/walkers/auth/":{"get":{"operationId":"getDiscordServers","summary":"getDiscordServers","tags":["walkers"],"description":"Get discord servers from user","parameters":[{"schema":{"type":"string"},"in":"query","name":"code","required":true},{"schema":{"type":"string"},"in":"query","name":"redirect","required":true}],"security":[{"token":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"post":{"operationId":"linkServer","summary":"linkServer","tags":["walkers"],"description":"Link a discord server to the clan","parameters":[{"schema":{"type":"string"},"in":"query","name":"discordserverid","required":true}],"security":[{"token":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/walkers/{walkerid}/":{"put":{"operationId":"editWalker","summary":"editWalker","tags":["walkers"],"description":"You can edit the information of a walker, it is specially created to update the data of the discord log and assign an owner to a walker","parameters":[{"schema":{"type":"string"},"in":"query","name":"owner","required":false},{"schema":{"type":"boolean"},"in":"query","name":"ready","required":false},{"schema":{"type":"string","enum":["pvp","farming","personal","ram"]},"in":"query","name":"use","required":false},{"schema":{"type":"string"},"in":"query","name":"type","required":false,"description":"Walker Type: Dinghy, Falco..."},{"schema":{"type":"string"},"in":"query","name":"description","required":false},{"schema":{"type":"string"},"in":"path","name":"walkerid","required":true}],"security":[{"token":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"delete":{"operationId":"deleteWalker","summary":"deleteWalker","tags":["walkers"],"description":"Delete the walker","parameters":[{"schema":{"type":"string"},"in":"path","name":"walkerid","required":true}],"security":[{"token":[]}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/clans/{clanid}/discordbot/":{"get":{"operationId":"getDiscordConfig","summary":"getDiscordConfig","tags":["clans","bot"],"description":"Return the bot configuration","parameters":[{"schema":{"type":"integer"},"in":"path","name":"clanid","required":true}],"security":[{"token":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"discordid":{"type":"string"},"botLanguaje":{"anyOf":[{"type":"string","enum":["en"]},{"type":"string","enum":["es"]},{"type":"string","enum":["ru"]},{"type":"string","enum":["fr"]},{"type":"string","enum":["de"]}]},"readClanLog":{"type":"boolean"},"automaticKick":{"type":"boolean"},"setNotReadyPVP":{"type":"boolean"},"walkerAlarm":{"type":"boolean"}},"required":["discordid","botLanguaje","readClanLog","automaticKick","setNotReadyPVP","walkerAlarm"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"put":{"operationId":"updateBotConfig","summary":"updateBotConfig","tags":["clans","bot"],"description":" Update the bot Config","parameters":[{"schema":{"type":"string","maxLength":2,"default":"en","enum":["en","es","ru","fr","de"]},"in":"query","name":"languaje","required":false},{"schema":{"type":"boolean"},"in":"query","name":"clanlog","required":false},{"schema":{"type":"boolean"},"in":"query","name":"kick","required":false},{"schema":{"type":"boolean"},"in":"query","name":"readypvp","required":false},{"schema":{"type":"boolean"},"in":"query","name":"walkeralarm","required":false},{"schema":{"type":"integer"},"in":"path","name":"clanid","required":true}],"security":[{"token":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/clans/{clanid}/relationships/":{"get":{"operationId":"getRelationships","summary":"getRelationships","tags":["clans"],"description":"Return the list of relationships for the clan","parameters":[{"schema":{"type":"integer"},"in":"path","name":"clanid","required":true}],"security":[{"token":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"leaderid":{"type":"string"},"id":{"type":"integer"},"typed":{"0":"NAP","1":"ALLY","2":"WAR","30":"FALSE_NAP","31":"FALSE_ALLY","32":"FALSE_WAR","NAP":0,"ALLY":1,"WAR":2,"FALSE_NAP":30,"FALSE_ALLY":31,"FALSE_WAR":32,"type":"integer"},"flagcolor":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"}},"required":["leaderid","id","typed","flagcolor","name","symbol"]}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"post":{"operationId":"createRelationship","summary":"createRelationship","tags":["clans"],"description":"To create new relationships","parameters":[{"schema":{"type":"integer","enum":["NAP","ALLY","WAR","FALSE_NAP","FALSE_ALLY","FALSE_WAR",0,1,2,30,31,32]},"in":"query","name":"typed","required":true,"description":"Type of relationship. 0 PNA, 1 Ally, 2 Enemy, 30 False PNA, 31 False Ally, 32 False War"},{"schema":{"type":"string"},"in":"query","name":"clanflag","required":false,"description":"Shows the colour of the clan in hexadecimal"},{"schema":{"type":"string"},"in":"query","name":"nameotherclan","required":true,"description":"Clan name"},{"schema":{"type":"string"},"in":"query","name":"symbol","required":false,"description":"Image of the flag"},{"schema":{"type":"integer"},"in":"path","name":"clanid","required":true}],"security":[{"token":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/clans/{clanid}/members/":{"get":{"operationId":"getMembers","summary":"getMembers","tags":["clans"],"description":"Return the information of the clan members","parameters":[{"schema":{"type":"integer"},"in":"path","name":"clanid","required":true}],"security":[{"token":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"discordid":{"type":"string"},"nickname":{"type":"string"},"discordtag":{"type":"string"},"leaderid":{"type":"string"}},"required":["discordid","discordtag","leaderid"]}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/clans/{clanid}/requests/":{"get":{"operationId":"getRequests","summary":"getRequests","tags":["clans"],"description":"Return the list of requests for entry to the clan","parameters":[{"schema":{"type":"integer"},"in":"path","name":"clanid","required":true}],"security":[{"token":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"discordid":{"type":"string"},"nickname":{"type":"string"},"discordtag":{"type":"string"},"leaderid":{"type":"string"},"message":{"type":"string"}},"required":["discordid","discordtag","leaderid"]}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"post":{"operationId":"sendRequest","summary":"sendRequest","tags":["clans"],"description":"Add a clan application, it can only be done if you are not in a clan","parameters":[{"schema":{"type":"string"},"in":"query","name":"message","required":false},{"schema":{"type":"integer"},"in":"path","name":"clanid","required":true}],"security":[{"token":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/clans/{clanid}/tech/":{"get":{"operationId":"seeWhoHasLearntIt","summary":"seeWhoHasLearntIt","tags":["clans","tech"],"description":"Returns all clan members who have learned that technology","parameters":[{"schema":{"type":"string"},"in":"query","name":"tech","required":true},{"schema":{"type":"string","enum":["Vitamins","Equipment","Construction","Crafting","Walkers"]},"in":"query","name":"tree","required":true},{"schema":{"type":"string"},"in":"path","name":"clanid","required":true}],"security":[{"token":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"discordtag":{"type":"string"}},"required":["discordtag"]}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/bot/clans/{discordid}/":{"post":{"operationId":"linkClan","summary":"linkClan","tags":["bot","clan"],"description":"Allows to link the discord server with the clan. This can only be done by clan leaders or anyone with bot permissions.","parameters":[{"schema":{"type":"string"},"in":"query","name":"memberid","required":true},{"schema":{"type":"string"},"in":"path","name":"discordid","required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"string"},"ClanID":{"type":"integer"},"Server Discord ID":{"type":"string"}},"required":["Success","ClanID","Server Discord ID"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"delete":{"operationId":"kickFromClan","summary":"kickFromClan","tags":["bot","clan"],"description":"Kick a clan member","parameters":[{"schema":{"type":"string"},"in":"query","name":"nick","required":true},{"schema":{"type":"string"},"in":"path","name":"discordid","required":true}],"security":[{"apiKey":[]}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/bot/clans/{discordid}/members":{"get":{"operationId":"getMembersPermisionsBot","summary":"getMembersPermisionsBot","tags":["bot","clan"],"description":"Return clan members permisions","parameters":[{"schema":{"type":"string"},"in":"path","name":"discordid","required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"clanid":{"type":"integer"},"discordid":{"type":"string"},"request":{"type":"boolean"},"kickmembers":{"type":"boolean"},"walkers":{"type":"boolean"},"bot":{"type":"boolean"},"diplomacy":{"type":"boolean"}},"required":["clanid","discordid","request","kickmembers","walkers","bot","diplomacy"]}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/bot/clans/{discordid}/relationships":{"get":{"operationId":"getRelationshipsByBot","summary":"getRelationshipsByBot","tags":["bot","clan"],"description":"Return the list of relationships for the clan","parameters":[{"schema":{"type":"string"},"in":"path","name":"discordid","required":true}],"security":[{"apiKey":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"leaderid":{"type":"string"},"id":{"type":"integer"},"typed":{"0":"NAP","1":"ALLY","2":"WAR","30":"FALSE_NAP","31":"FALSE_ALLY","32":"FALSE_WAR","NAP":0,"ALLY":1,"WAR":2,"FALSE_NAP":30,"FALSE_ALLY":31,"FALSE_WAR":32,"type":"integer"},"flagcolor":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"}},"required":["leaderid","id","typed","flagcolor","name","symbol"]}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/maps/{mapid}/resources/":{"get":{"operationId":"getResources","summary":"getResources","tags":["maps"],"description":"Return all resources for that map","parameters":[{"schema":{"type":"string"},"in":"query","name":"mappass","required":true,"description":"Pass for the map"},{"schema":{"type":"integer"},"in":"path","name":"mapid","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"resourceid":{"type":"number"},"mapid":{"type":"number"},"resourcetype":{"type":"string"},"quality":{"type":"number"},"x":{"type":"number"},"y":{"type":"number"},"token":{"type":"string"},"typemap":{"type":"string"},"description":{"type":"string"},"lastharvested":{"type":"string"}},"required":["resourceid","mapid","resourcetype","quality","x","y","typemap"]}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"post":{"operationId":"addResourceMap","summary":"addResourceMap","tags":["maps"],"description":"To create a new resource in the map","parameters":[{"schema":{"type":"string"},"in":"query","name":"mappass","required":true,"description":"Pass for the map"},{"schema":{"type":"string"},"in":"query","name":"resourcetype","required":true,"description":"Type of resource"},{"schema":{"type":"integer"},"in":"query","name":"quality","required":false,"description":"Resource quality"},{"schema":{"type":"number"},"in":"query","name":"x","required":true,"description":"Resource Coordinate X"},{"schema":{"type":"number"},"in":"query","name":"y","required":true,"description":"Resource Coordinate Y"},{"schema":{"type":"string"},"in":"query","name":"description","required":false,"description":"Resource description"},{"schema":{"type":"string"},"in":"query","name":"harvested","required":false,"description":"Resource description"},{"schema":{"type":"integer"},"in":"path","name":"mapid","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/users/{discordid}/tech/":{"get":{"operationId":"getLearned","summary":"getLearned","tags":["users","tech"],"description":"Give back what you have learned from that technology tree.","parameters":[{"schema":{"type":"string","enum":["Vitamins","Equipment","Construction","Crafting","Walkers"]},"in":"query","name":"tree","required":false},{"schema":{"type":"string"},"in":"path","name":"discordid","required":true}],"security":[{"token":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"discordtag":{"type":"string"},"Vitamins":{"type":"array","items":{"type":"string"}},"Equipment":{"type":"array","items":{"type":"string"}},"Crafting":{"type":"array","items":{"type":"string"}},"Construction":{"type":"array","items":{"type":"string"}},"Walkers":{"type":"array","items":{"type":"string"}}},"required":["discordtag","Vitamins","Equipment","Crafting","Construction","Walkers"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"put":{"operationId":"addTech","summary":"addTech","tags":["users","tech"],"description":"Adds the list of learned technologies to that user.","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","description":"Tech name"}}}}},"parameters":[{"schema":{"type":"string","enum":["Vitamins","Equipment","Construction","Crafting","Walkers"]},"in":"query","name":"tree","required":true,"description":"Tree name"},{"schema":{"type":"string"},"in":"path","name":"discordid","required":true}],"security":[{"token":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"discordtag":{"type":"string"},"Vitamins":{"type":"array","items":{"type":"string"}},"Equipment":{"type":"array","items":{"type":"string"}},"Crafting":{"type":"array","items":{"type":"string"}},"Construction":{"type":"array","items":{"type":"string"}},"Walkers":{"type":"array","items":{"type":"string"}}},"required":["discordtag","Vitamins","Equipment","Crafting","Construction","Walkers"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/clans/{clanid}/relationships/{relationshipid}/":{"delete":{"operationId":"deleteRelationship","summary":"deleteRelationship","tags":["clans"],"description":"It erases a diplomatic relationship. In case of war the other clan has to accept it.","parameters":[{"schema":{"type":"integer"},"in":"path","name":"clanid","required":true},{"schema":{"type":"integer"},"in":"path","name":"relationshipid","required":true}],"security":[{"token":[]}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/clans/{clanid}/members/{memberid}/":{"put":{"operationId":"updateMember","summary":"updateMember","tags":["clans"],"description":"To perform the actions of kick from the clan or changing the clan leader. Only leaders can use these options","parameters":[{"schema":{"type":"string","enum":["owner","kick"]},"in":"query","name":"action","required":true},{"schema":{"type":"integer"},"in":"path","name":"clanid","required":true},{"schema":{"type":"string"},"in":"path","name":"memberid","required":true}],"security":[{"token":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/clans/{clanid}/requests/{requestid}/":{"put":{"operationId":"updateRequest","summary":"updateRequest","tags":["clans"],"description":"It serves to accept or reject an application for entry into a clan","parameters":[{"schema":{"type":"string","enum":["accept","reject"]},"in":"query","name":"action","required":true},{"schema":{"type":"integer"},"in":"path","name":"clanid","required":true},{"schema":{"type":"string"},"in":"path","name":"requestid","required":true}],"security":[{"token":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"405":{"description":"Method Not Allowed","content":{"application/json":{"schema":{"type":"string","description":"Method Not Allowed"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/maps/{mapid}/resources/{resourceid}/":{"put":{"operationId":"editResource","summary":"editResource","tags":["maps"],"description":"For edit the resource","parameters":[{"schema":{"type":"string"},"in":"query","name":"token","required":true,"description":"Token generated"},{"schema":{"type":"string"},"in":"query","name":"description","required":false,"description":"Resource description"},{"schema":{"type":"string"},"in":"query","name":"harvested","required":false,"description":"Resource description"},{"schema":{"type":"integer"},"in":"path","name":"mapid","required":true},{"schema":{"type":"integer"},"in":"path","name":"resourceid","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"delete":{"operationId":"deleteResource","summary":"deleteResource","tags":["maps"],"description":"Delete the resource","parameters":[{"schema":{"type":"string"},"in":"query","name":"token","required":true,"description":"Token generated"},{"schema":{"type":"integer"},"in":"path","name":"mapid","required":true},{"schema":{"type":"integer"},"in":"path","name":"resourceid","required":true}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}},"/clans/{clanid}/members/{memberid}/permissions/":{"get":{"operationId":"getMemberPermissions","summary":"getMemberPermissions","tags":["clans"],"description":"Return a clan member's permissions Only the clan leader and the clan member can use this endpoint.","parameters":[{"schema":{"type":"integer"},"in":"path","name":"clanid","required":true},{"schema":{"type":"string"},"in":"path","name":"memberid","required":true}],"security":[{"token":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"clanid":{"type":"integer"},"discordid":{"type":"string"},"request":{"type":"boolean"},"kickmembers":{"type":"boolean"},"walkers":{"type":"boolean"},"bot":{"type":"boolean"},"diplomacy":{"type":"boolean"}},"required":["clanid","discordid","request","kickmembers","walkers","bot","diplomacy"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"string","description":"Not Found"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}},"put":{"operationId":"updateMemberPermissions","summary":"updateMemberPermissions","tags":["clans"],"description":"Only the leader can perform this action","parameters":[{"schema":{"type":"boolean"},"in":"query","name":"request","required":true},{"schema":{"type":"boolean"},"in":"query","name":"kickmembers","required":true},{"schema":{"type":"boolean"},"in":"query","name":"walkers","required":true},{"schema":{"type":"boolean"},"in":"query","name":"bot","required":true},{"schema":{"type":"boolean"},"in":"query","name":"diplomacy","required":true},{"schema":{"type":"integer"},"in":"path","name":"clanid","required":true},{"schema":{"type":"string"},"in":"path","name":"memberid","required":true}],"security":[{"token":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"string","description":"Bad Request"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string","description":"Unauthorized"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"type":"string","description":"Service Unavailable"}}}}}}}},"tags":[{"name":"bot","description":"Discord bot related end-points"},{"name":"clans"},{"name":"clusters"},{"name":"maps"},{"name":"recipes"},{"name":"tech"},{"name":"trades"},{"name":"users"},{"name":"walkers"}],"externalDocs":{"url":"https://github.com/dm94/stiletto-node-api"}}