### Game Configuration Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving game configuration details, including dates and general settings. ```APIDOC ## POST /gameConfig.getDates ### Description Get game dates. ### Method POST ### Endpoint /gameConfig.getDates ### Response #### Success Response (200) - **dates** (object) - An object containing important game dates. #### Response Example ```json { "dates": { "startDate": "2023-01-01", "endDate": "2023-12-31" } } ``` ## POST /gameConfig.getGameConfig ### Description Get game configuration. ### Method POST ### Endpoint /gameConfig.getGameConfig ### Response #### Success Response (200) - **config** (object) - The overall game configuration object. #### Response Example ```json { "config": { "version": "1.2.3", "currency": "Gold" } } ``` ``` -------------------------------- ### Upgrade Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving upgrade information based on type and entity. ```APIDOC ## POST /upgrade.getUpgradeByTypeAndEntity ### Description Get upgrade by type and entity. ### Method POST ### Endpoint /upgrade.getUpgradeByTypeAndEntity ### Parameters #### Query Parameters - **type** (string) - Required - The type of upgrade. - **entityId** (string) - Required - ``` -------------------------------- ### Item Offer Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving item offer details by ID. ```APIDOC ## POST /itemOffer.getById ### Description Get item offer by ID. ### Method POST ### Endpoint /itemOffer.getById ### Parameters #### Query Parameters - **id** (string) - Required - The ID of the item offer to retrieve. ### Request Example ```json { "id": "example-offer-id" } ``` ### Response #### Success Response (200) - **offer** (object) - Details of the item offer. #### Response Example ```json { "offer": { "id": "example-offer-id", "itemId": "example-item-id", "price": 105.00 } } ``` ``` -------------------------------- ### Work Offer Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving work offer information, including by ID, by company ID, and paginated. ```APIDOC ## POST /workOffer.getById ### Description Get work offer by ID. ### Method POST ### Endpoint /workOffer.getById ### Parameters #### Query Parameters - **id** (string) - Required - The ID of the work offer to retrieve. ### Request Example ```json { "id": "example-work-offer-id" } ``` ### Response #### Success Response (200) - **workOffer** (object) - Details of the work offer. #### Response Example ```json { "workOffer": { "id": "example-work-offer-id", "companyId": "example-company-id", "salary": 5000 } } ``` ## POST /workOffer.getWorkOfferByCompanyId ### Description Get work offer by company ID. ### Method POST ### Endpoint /workOffer.getWorkOfferByCompanyId ### Parameters #### Query Parameters - **companyId** (string) - Required - The ID of the company to get work offers for. ### Request Example ```json { "companyId": "example-company-id" } ``` ### Response #### Success Response (200) - **workOffers** (array) - A list of work offer objects for the specified company. #### Response Example ```json { "workOffers": [ { "id": "work-offer-1", "title": "Software Developer" } ] } ``` ## POST /workOffer.getWorkOffersPaginated ### Description Get paginated work offers. ### Method POST ### Endpoint /workOffer.getWorkOffersPaginated ### Parameters #### Query Parameters - **page** (integer) - Optional - The page number for pagination. - **limit** (integer) - Optional - The number of work offers per page. ### Request Example ```json { "page": 1, "limit": 10 } ``` ### Response #### Success Response (200) - **workOffers** (array) - A list of paginated work offer objects. #### Response Example ```json { "workOffers": [ { "id": "work-offer-pag-1", "title": "Marketing Specialist" }, { "id": "work-offer-pag-2", "title": "Accountant" } ] } ``` ``` -------------------------------- ### Battle Ranking Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving battle ranking data. ```APIDOC ## POST /battleRanking.getRanking ### Description Get battle rankings. ### Method POST ### Endpoint /battleRanking.getRanking ### Parameters #### Query Parameters - **battleId** (string) - Required - The ID of the battle to get rankings for. - **page** (integer) - Optional - The page number for pagination. - **limit** (integer) - Optional - The number of rankings per page. ### Request Example ```json { "battleId": "example-battle-id", "page": 1, "limit": 20 } ``` ### Response #### Success Response (200) - **ranking** (array) - A list of ranking objects. #### Response Example ```json { "ranking": [ { "rank": 1, "player": "TopPlayer" } ] } ``` ``` -------------------------------- ### User Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving user information, including lite profile and users by country. ```APIDOC ## POST /user.getUserLite ### Description Get user profile (lite). ### Method POST ### Endpoint /user.getUserLite ### Parameters #### Query Parameters - **userId** (string) - Required - The ID of the user to retrieve. ### Request Example ```json { "userId": "example-user-id" } ``` ### Response #### Success Response (200) - **user** (object) - Lite user profile information. #### Response Example ```json { "user": { "id": "example-user-id", "username": "ExampleUser" } } ``` ## POST /user.getUsersByCountry ### Description Get users by country. ### Method POST ### Endpoint /user.getUsersByCountry ### Parameters #### Query Parameters - **countryId** (string) - Required - The ID of the country to get users from. - **page** (integer) - Optional - The page number for pagination. - **limit** (integer) - Optional - The number of users per page. ### Request Example ```json { "countryId": "example-country-id", "page": 1, "limit": 20 } ``` ### Response #### Success Response (200) - **users** (array) - A list of user objects from the specified country. #### Response Example ```json { "users": [ { "id": "user-id-abc", "username": "UserFromExampleland" } ] } ``` ``` -------------------------------- ### Battle Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving battle information, including by ID, live data, and a list of battles. ```APIDOC ## POST /battle.getById ### Description Get battle by ID. ### Method POST ### Endpoint /battle.getById ### Parameters #### Query Parameters - **id** (string) - Required - The ID of the battle to retrieve. ### Request Example ```json { "id": "example-battle-id" } ``` ### Response #### Success Response (200) - **battle** (object) - Details of the battle. #### Response Example ```json { "battle": { "id": "example-battle-id", "name": "The Great Battle" } } ``` ## POST /battle.getLiveBattleData ### Description Get live battle data. ### Method POST ### Endpoint /battle.getLiveBattleData ### Response #### Success Response (200) - **liveData** (object) - Real-time data for ongoing battles. #### Response Example ```json { "liveData": { "battleId": "live-battle-1", "status": "ongoing" } } ``` ## POST /battle.getBattles ### Description Get battles. ### Method POST ### Endpoint /battle.getBattles ### Parameters #### Query Parameters - **page** (integer) - Optional - The page number for pagination. - **limit** (integer) - Optional - The number of battles per page. ### Request Example ```json { "page": 1, "limit": 10 } ``` ### Response #### Success Response (200) - **battles** (array) - A list of battle objects. #### Response Example ```json { "battles": [ { "id": "battle-id-1", "name": "Battle of the Plains" }, { "id": "battle-id-2", "name": "Siege of the Castle" } ] } ``` ``` -------------------------------- ### Ranking Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving general ranking data. ```APIDOC ## POST /ranking.getRanking ### Description Get ranking data. ### Method POST ### Endpoint /ranking.getRanking ### Parameters #### Query Parameters - **page** (integer) - Optional - The page number for pagination. - **limit** (integer) - Optional - The number of ranking entries per page. ### Request Example ```json { "page": 1, "limit": 50 } ``` ### Response #### Success Response (200) - **ranking** (array) - A list of ranking objects. #### Response Example ```json { "ranking": [ { "rank": 1, "score": 10000, "player": "GlobalLeader" } ] } ``` ``` -------------------------------- ### Event Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving event data, specifically paginated events. ```APIDOC ## POST /event.getEventsPaginated ### Description Get paginated events. ### Method POST ### Endpoint /event.getEventsPaginated ### Parameters #### Query Parameters - **page** (integer) - Optional - The page number for pagination. - **limit** (integer) - Optional - The number of events per page. ### Request Example ```json { "page": 1, "limit": 10 } ``` ### Response #### Success Response (200) - **events** (array) - A list of event objects. #### Response Example ```json { "events": [ { "id": "event-id-1", "name": "Summer Festival" }, { "id": "event-id-2", "name": "Winter Carnival" } ] } ``` ``` -------------------------------- ### Item Trading Endpoints Source: https://api2.warera.io/docs/index Endpoints related to item trading, including fetching item prices. ```APIDOC ## POST /itemTrading.getPrices ### Description Get item prices. ### Method POST ### Endpoint /itemTrading.getPrices ### Parameters #### Query Parameters - **itemId** (string) - Required - The ID of the item to get prices for. ### Request Example ```json { "itemId": "example-item-id" } ``` ### Response #### Success Response (200) - **prices** (object) - An object containing price information for the item. #### Response Example ```json { "prices": { "average": 100.50, "min": 95.00, "max": 110.00 } } ``` ``` -------------------------------- ### Trading Order Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving trading orders, specifically the best orders for an item. ```APIDOC ## POST /tradingOrder.getTopOrders ### Description Get best orders for an item. ### Method POST ### Endpoint /tradingOrder.getTopOrders ### Parameters #### Query Parameters - **itemId** (string) - Required - The ID of the item to get orders for. - **limit** (integer) - Optional - The maximum number of orders to return. ### Request Example ```json { "itemId": "example-item-id", "limit": 5 } ``` ### Response #### Success Response (200) - **orders** (array) - A list of the best trading order objects. #### Response Example ```json { "orders": [ { "orderId": "order-123", "price": 100.00, "quantity": 10 } ] } ``` ``` -------------------------------- ### Transaction Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving paginated transaction data. ```APIDOC ## POST /transaction.getPaginatedTransactions ### Description Get paginated transactions. ### Method POST ### Endpoint /transaction.getPaginatedTransactions ### Parameters #### Query Parameters - **page** (integer) - Optional - The page number for pagination. - **limit** (integer) - Optional - The number of transactions per page. ### Request Example ```json { "page": 1, "limit": 50 } ``` ### Response #### Success Response (200) - **transactions** (array) - A list of paginated transaction objects. #### Response Example ```json { "transactions": [ { "id": "tx-123", "amount": 1000, "timestamp": "2023-10-27T11:00:00Z" } ] } ``` ``` -------------------------------- ### Article Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving article information, including by ID and paginated articles. ```APIDOC ## POST /article.getArticleById ### Description Get article by ID. ### Method POST ### Endpoint /article.getArticleById ### Parameters #### Query Parameters - **id** (string) - Required - The ID of the article to retrieve. ### Request Example ```json { "id": "example-article-id" } ``` ### Response #### Success Response (200) - **article** (object) - Details of the article. #### Response Example ```json { "article": { "id": "example-article-id", "title": "Introduction to WarEra" } } ``` ## POST /article.getArticlesPaginated ### Description Get paginated articles. ### Method POST ### Endpoint /article.getArticlesPaginated ### Parameters #### Query Parameters - **page** (integer) - Optional - The page number for pagination. - **limit** (integer) - Optional - The number of articles per page. ### Request Example ```json { "page": 1, "limit": 10 } ``` ### Response #### Success Response (200) - **articles** (array) - A list of paginated article objects. #### Response Example ```json { "articles": [ { "id": "article-pag-1", "title": "Advanced Strategies" }, { "id": "article-pag-2", "title": "Economy Guide" } ] } ``` ``` -------------------------------- ### Search Endpoints Source: https://api2.warera.io/docs/index Endpoint for performing a global search across various entities. ```APIDOC ## POST /search.searchAnything ### Description Global search across entities. ### Method POST ### Endpoint /search.searchAnything ### Parameters #### Query Parameters - **query** (string) - Required - The search term. - **limit** (integer) - Optional - The maximum number of results to return. ### Request Example ```json { "query": "example search term", "limit": 10 } ``` ### Response #### Success Response (200) - **results** (array) - A list of search result objects. #### Response Example ```json { "results": [ { "type": "company", "id": "company-id-xyz", "name": "Search Result Company" } ] } ``` ``` -------------------------------- ### Government Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving government information based on country ID. ```APIDOC ## POST /government.getByCountryId ### Description Get government by country ID. ### Method POST ### Endpoint /government.getByCountryId ### Parameters #### Query Parameters - **countryId** (string) - Required - The ID of the country to get the government for. ### Request Example ```json { "countryId": "example-country-id" } ``` ### Response #### Success Response (200) - **government** (object) - Details of the government. #### Response Example ```json { "government": { "id": "gov-id-1", "name": "Republic of Exampleland" } } ``` ``` -------------------------------- ### Company Endpoints Source: https://api2.warera.io/docs/index Endpoints related to company information, including fetching a single company by ID or a list of companies with pagination. ```APIDOC ## POST /company.getById ### Description Get company by ID. ### Method POST ### Endpoint /company.getById ### Parameters #### Query Parameters - **id** (string) - Required - The ID of the company to retrieve. ### Request Example ```json { "id": "example-company-id" } ``` ### Response #### Success Response (200) - **company** (object) - Details of the company. #### Response Example ```json { "company": { "id": "example-company-id", "name": "Example Corp" } } ``` ## POST /company.getCompanies ### Description Get companies with pagination. ### Method POST ### Endpoint /company.getCompanies ### Parameters #### Query Parameters - **page** (integer) - Optional - The page number for pagination. - **limit** (integer) - Optional - The number of companies per page. ### Request Example ```json { "page": 1, "limit": 10 } ``` ### Response #### Success Response (200) - **companies** (array) - A list of company objects. #### Response Example ```json { "companies": [ { "id": "company-id-1", "name": "Company A" }, { "id": "company-id-2", "name": "Company B" } ] } ``` ``` -------------------------------- ### Military Unit Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving military unit information, including by ID and paginated. ```APIDOC ## POST /mu.getById ### Description Get military unit by ID. ### Method POST ### Endpoint /mu.getById ### Parameters #### Query Parameters - **id** (string) - Required - The ID of the military unit to retrieve. ### Request Example ```json { "id": "example-mu-id" } ``` ### Response #### Success Response (200) - **mu** (object) - Details of the military unit. #### Response Example ```json { "mu": { "id": "example-mu-id", "name": "Special Forces Unit" } } ``` ## POST /mu.getManyPaginated ### Description Get military units (paginated). ### Method POST ### Endpoint /mu.getManyPaginated ### Parameters #### Query Parameters - **page** (integer) - Optional - The page number for pagination. - **limit** (integer) - Optional - The number of military units per page. ### Request Example ```json { "page": 1, "limit": 20 } ``` ### Response #### Success Response (200) - **mus** (array) - A list of paginated military unit objects. #### Response Example ```json { "mus": [ { "id": "mu-pag-1", "name": "Infantry Division" }, { "id": "mu-pag-2", "name": "Air Force Squadron" } ] } ``` ``` -------------------------------- ### Country Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving country data, including a specific country by ID or all countries. ```APIDOC ## POST /country.getCountryById ### Description Get country by ID. ### Method POST ### Endpoint /country.getCountryById ### Parameters #### Query Parameters - **id** (string) - Required - The ID of the country to retrieve. ### Request Example ```json { "id": "example-country-id" } ``` ### Response #### Success Response (200) - **country** (object) - Details of the country. #### Response Example ```json { "country": { "id": "example-country-id", "name": "Exampleland" } } ``` ## POST /country.getAllCountries ### Description Get all countries. ### Method POST ### Endpoint /country.getAllCountries ### Response #### Success Response (200) - **countries** (array) - A list of all country objects. #### Response Example ```json { "countries": [ { "id": "country-id-1", "name": "Country A" }, { "id": "country-id-2", "name": "Country B" } ] } ``` ``` -------------------------------- ### Round Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving round information, including by ID and last hits. ```APIDOC ## POST /round.getById ### Description Get round by ID. ### Method POST ### Endpoint /round.getById ### Parameters #### Query Parameters - **id** (string) - Required - The ID of the round to retrieve. ### Request Example ```json { "id": "example-round-id" } ``` ### Response #### Success Response (200) - **round** (object) - Details of the round. #### Response Example ```json { "round": { "id": "example-round-id", "startTime": "2023-10-27T10:00:00Z" } } ``` ## POST /round.getLastHits ### Description Get last hits in round. ### Method POST ### Endpoint /round.getLastHits ### Parameters #### Query Parameters - **roundId** (string) - Required - The ID of the round to get last hits for. ### Request Example ```json { "roundId": "example-round-id" } ``` ### Response #### Success Response (200) - **hits** (array) - A list of last hit objects. #### Response Example ```json { "hits": [ { "timestamp": "2023-10-27T10:05:00Z", "player": "Player1" } ] } ``` ``` -------------------------------- ### Region Endpoints Source: https://api2.warera.io/docs/index Endpoints for retrieving region data, including a specific region by ID or all regions. ```APIDOC ## POST /region.getById ### Description Get region by ID. ### Method POST ### Endpoint /region.getById ### Parameters #### Query Parameters - **id** (string) - Required - The ID of the region to retrieve. ### Request Example ```json { "id": "example-region-id" } ``` ### Response #### Success Response (200) - **region** (object) - Details of the region. #### Response Example ```json { "region": { "id": "example-region-id", "name": "Central Region" } } ``` ## POST /region.getRegionsObject ### Description Get all regions. ### Method POST ### Endpoint /region.getRegionsObject ### Response #### Success Response (200) - **regions** (object) - An object containing all regions, likely keyed by ID. #### Response Example ```json { "regions": { "region-id-1": {"name": "Region A"}, "region-id-2": {"name": "Region B"} } } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.