Sendouc / sendou.ink

Competitive Splatoon Platform
https://sendou.ink
GNU General Public License v3.0
227 stars 71 forks source link

Calendar public API #1729

Closed Sendouc closed 2 weeks ago

Sendouc commented 2 months ago

image

vlee489 commented 3 weeks ago

The expected data I would expect to be returned would be along the lines of what's returned from the https://sendou.ink/calendar?week={week} endpoint where the data would be the data in the list of data from the events key

{
        "name": "Swim or Sink 152",
        "discordUrl": "https://discord.gg/F7RaNUR",
        "bracketUrl": "https://sendou.ink",
        "tags": [
            "BADGE"
        ],
        "tournamentId": 151,
        "eventDateId": 2470,
        "eventId": 1669,
        "startTime": 1718841600,
        "username": "grace",
        "nthAppearance": 1,
        "logoUrl": null,
        "tournamentSettings": {
            "bracketProgression": [...],
            "teamsPerGroup": 4,
            "thirdPlaceMatch": true,
            "isRanked": true,
            "deadlines": "DEFAULT",
            "isInvitational": false,
            "enableNoScreenToggle": true,
            "autonomousSubs": true,
            "regClosesAt": 1718841600,
            "autoCheckInAll": true,
            "requireInGameNames": false
        },
        "hasBadge": 1,
        "badgePrizes": [
            {
                "id": 66,
                "code": "sos4",
                "hue": null,
                "displayName": "Swim or Sink (Great White)"
            }
        ],
        "participantCounts": {
            "teams": 52,
            "players": 256
        }
    }