Results 1 to 3 of 3

Thread: Model documentation for "/clanwarleagues/wars/{warTag}" -endpoint is wrong

  1. #1
    Trainee
    Join Date
    Sep 2019
    Location
    Finland
    Posts
    17

    Model documentation for "/clanwarleagues/wars/{warTag}" -endpoint is wrong

    Official Clash of Clans API documentation gives example responses (JSON) in addition to Model documentation for each API endpoint.

    The endpoint that currently has wrong documentation is "/clanwarleagues/wars/{warTag}". The documentation for that endpoint begins:

    Code:
    ClanWarLeagueGroup {
      tag (string, optional),
      state (string, optional),
      season (string, optional),
      clans (ClanWarLeagueClanList, optional),
      rounds (ClanWarLeagueRoundList, optional)
    }
    :
    :

    That documentation actually describes "/clans/{clanTag}/currentwar/leaguegroup" response and thus is wrong.

    Can you please fix the documentation so that the Model documentation (and Example Value) describes the correct CWL war models.
    Last edited by tparviainen; September 18th, 2019 at 03:21 PM.
    .NET Standard library for Clash of Clans API @ https://github.com/tparviainen/clashofclans

  2. #2
    Trainee
    Join Date
    Sep 2019
    Location
    Finland
    Posts
    17
    Just wondering whether anyone from Supercell is actually reading this sub-forum? The instructions at https://developer.clashofclans.com clearly say that the feedback for the API should be given here.

    But anyway the reason I'm interested about the up-to-date documentation for endpoints is that I'm using Supercell's endpoint Model documentation to validate my own C# models (and keep them in sync to make future development easier). At the moment my models are not in sync, I could update them to current endpoint documentation but because these kind of changes are breaking changes to my library clients I would like to do all these changes at once, instead of causing breaking change now and (maybe) few weeks later to cause another break due to model name change again!
    .NET Standard library for Clash of Clans API @ https://github.com/tparviainen/clashofclans

  3. #3
    Centennial Club
    Join Date
    Feb 2015
    Posts
    174
    No, no one here listens. You can join some other library devs on Discord though. https://discord.gg/UNgZ7rC We have a list of issues, and I think I already added this one, though I probably read it from here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •