{"openapi":"3.0.0","paths":{"/v1/committees":{"get":{"operationId":"CommitteesController_getPrograms","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommitteeDto"}}}}}},"tags":["committees"]}},"/v1/results":{"get":{"operationId":"ResultsController_getResults","parameters":[{"name":"teamId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/MatchResultDto"}},"example":{"2023-09-01":[{"id":"1","date":"2023-09-01T18:00:00.000Z","homeTeamName":"Team 1","awayTeamName":"Team 2","result":"1-0"}]}}}}}},"tags":["results"]}},"/v1/results/standings":{"get":{"operationId":"ResultsController_getPositions","parameters":[{"name":"fieldType","required":false,"in":"query","schema":{"enum":["INDOOR","OUTDOOR"],"type":"string"}},{"name":"season","required":false,"in":"query","schema":{"enum":["FALL","SPRING"],"type":"string"}},{"name":"teamId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PoolStandingDto"}}}}}},"tags":["results"]}},"/v1/services":{"get":{"operationId":"ServicesControllerV1_findAll","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceDtoV1"}}}}}},"tags":["services"]}},"/v1/services/attendants":{"get":{"operationId":"ServicesControllerV1_findAllAttendants","parameters":[{"name":"date","required":false,"in":"query","description":"Date can be the following formats: \n            <ul>\n                <li>01-01-2023</li>\n                <li>2023-01-01</li>\n                <li>X-weeks (including the current week)</li>\n                <li>next</li>\n                <li>next-day</li>\n            </ul>","examples":{"---":{},"01-01-2023":{"value":"01-01-2023"},"2-weeks":{"value":"2-weeks"},"next":{"value":"next"},"next-day":{"value":"next-day"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/ShiftDto"}}}}}}},"tags":["services"]}},"/v1/services/bar":{"get":{"operationId":"ServicesControllerV1_findAllBarShifts","parameters":[{"name":"date","required":false,"in":"query","description":"Date can be the following formats: \n            <ul>\n                <li>01-01-2023</li>\n                <li>2023-01-01</li>\n                <li>X-weeks (including the current week)</li>\n                <li>next</li>\n                <li>next-day</li>\n            </ul>","examples":{"---":{},"01-01-2023":{"value":"01-01-2023"},"2-weeks":{"value":"2-weeks"},"next":{"value":"next"},"next-day":{"value":"next-day"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/BarShiftDto"}}}}}}},"tags":["services"]}},"/v1/services/jurytables":{"get":{"operationId":"ServicesControllerV1_findAllJuryTableShifts","parameters":[],"responses":{"200":{"description":"Matches grouped by calendar date (YYYY-MM-DD).","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/PublicJuryTableMatchDto"}}}}}}},"tags":["services"]}},"/v1/services/{type}":{"get":{"operationId":"ServicesControllerV1_findAllShiftsForService","parameters":[{"name":"type","required":true,"in":"path","schema":{"type":"string"}},{"name":"date","required":false,"in":"query","description":"Date can be the following formats: \n            <ul>\n                <li>01-01-2023</li>\n                <li>2023-01-01</li>\n                <li>X-weeks (including the current week)</li>\n                <li>next</li>\n                <li>next-day</li>\n            </ul>","examples":{"---":{},"01-01-2023":{"value":"01-01-2023"},"2-weeks":{"value":"2-weeks"},"next":{"value":"next"},"next-day":{"value":"next-day"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/ShiftDto"}}}}}}},"tags":["services"]}},"/v2/services":{"get":{"operationId":"ServicesControllerV2_findAll","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceDtoV2"}}}}}},"tags":["services"]}},"/v2/services/{type}":{"get":{"operationId":"ServicesControllerV2_findAllShiftsForService","parameters":[{"name":"type","required":true,"in":"path","schema":{"type":"string"}},{"name":"date","required":false,"in":"query","description":"Date can be the following formats: \n            <ul>\n                <li>01-01-2023</li>\n                <li>2023-01-01</li>\n                <li>X-weeks (including the current week)</li>\n                <li>next</li>\n                <li>next-day</li>\n            </ul>","examples":{"---":{},"01-01-2023":{"value":"01-01-2023"},"2-weeks":{"value":"2-weeks"},"next":{"value":"next"},"next-day":{"value":"next-day"}},"schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/ShiftDto"}}}}}}},"tags":["services"]}},"/v1/teams":{"get":{"operationId":"TeamsController_getPrograms","parameters":[{"name":"fieldType","required":false,"in":"query","schema":{"enum":["INDOOR","OUTDOOR"],"type":"string"}},{"name":"teamId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TeamDto"}}}}}},"tags":["teams"]}},"/v1/training-schedules":{"get":{"operationId":"TrainingSchedulesController_getTrainingSchedules","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingScheduleDto"}}}}},"tags":["training-schedules"]}},"/v1/training-schedules/{teamId}":{"get":{"operationId":"TrainingSchedulesController_getProgramsForTeam","parameters":[{"name":"teamId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrainingScheduleDto"}}}}},"tags":["training-schedules"]}},"/v1/programs":{"get":{"operationId":"ProgramsController_getPrograms","parameters":[{"name":"date","required":false,"in":"query","description":"Date can be the following formats: \n            <ul>\n                <li>01-01-2023</li>\n                <li>2023-01-01</li>\n                <li>X-weeks (including the current week)</li>\n                <li>next</li>\n                <li>next-day</li>\n            </ul>","examples":{"---":{},"01-01-2023":{"value":"01-01-2023"},"2-weeks":{"value":"2-weeks"},"next":{"value":"next"},"next-day":{"value":"next-day"}},"schema":{"type":"string"}},{"name":"reserves","required":false,"in":"query","schema":{"default":"false","type":"boolean"}},{"name":"location","required":false,"in":"query","schema":{"enum":["HOME","AWAY"],"type":"string"}},{"name":"levelType","required":false,"in":"query","schema":{"default":"ALL","enum":["ALL","COMPETITIVE","AMATEUR"],"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"default":"time","enum":["time","team"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/ProgramMatchDto"}}}}}}},"tags":["programs"]}},"/v1/programs/practice-matches":{"get":{"operationId":"ProgramsController_getPracticeMatches","parameters":[{"name":"date","required":false,"in":"query","description":"Date can be the following formats: \n            <ul>\n                <li>01-01-2023</li>\n                <li>2023-01-01</li>\n                <li>X-weeks (including the current week)</li>\n                <li>next</li>\n                <li>next-day</li>\n            </ul>","examples":{"---":{},"01-01-2023":{"value":"01-01-2023"},"2-weeks":{"value":"2-weeks"},"next":{"value":"next"},"next-day":{"value":"next-day"}},"schema":{"type":"string"}},{"name":"location","required":false,"in":"query","schema":{"enum":["HOME","AWAY"],"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"default":"time","enum":["time","team"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/ProgramMatchDto"}}}}}}},"tags":["programs"]}},"/v1/programs/practice-matches/{teamId}":{"get":{"operationId":"ProgramsController_getPracticeMatchesForTeam","parameters":[{"name":"teamId","required":true,"in":"path","schema":{"type":"string"}},{"name":"date","required":false,"in":"query","description":"Date can be the following formats: \n            <ul>\n                <li>01-01-2023</li>\n                <li>2023-01-01</li>\n                <li>X-weeks (including the current week)</li>\n                <li>next</li>\n                <li>next-day</li>\n            </ul>","examples":{"---":{},"01-01-2023":{"value":"01-01-2023"},"2-weeks":{"value":"2-weeks"},"next":{"value":"next"},"next-day":{"value":"next-day"}},"schema":{"type":"string"}},{"name":"location","required":false,"in":"query","schema":{"enum":["HOME","AWAY"],"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"default":"time","enum":["time","team"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/ProgramMatchDto"}}}}}}},"tags":["programs"]}},"/v1/programs/{teamId}":{"get":{"operationId":"ProgramsController_getProgramsForTeam","parameters":[{"name":"teamId","required":true,"in":"path","schema":{"type":"string"}},{"name":"date","required":false,"in":"query","description":"Date can be the following formats: \n            <ul>\n                <li>01-01-2023</li>\n                <li>2023-01-01</li>\n                <li>X-weeks (including the current week)</li>\n                <li>next</li>\n                <li>next-day</li>\n            </ul>","examples":{"---":{},"01-01-2023":{"value":"01-01-2023"},"2-weeks":{"value":"2-weeks"},"next":{"value":"next"},"next-day":{"value":"next-day"}},"schema":{"type":"string"}},{"name":"reserves","required":false,"in":"query","schema":{"default":"false","type":"boolean"}},{"name":"location","required":false,"in":"query","schema":{"enum":["HOME","AWAY"],"type":"string"}},{"name":"levelType","required":false,"in":"query","schema":{"default":"ALL","enum":["ALL","COMPETITIVE","AMATEUR"],"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"default":"time","enum":["time","team"],"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/ProgramMatchDto"}}}}}}},"tags":["programs"]}}},"info":{"title":"SVM API","description":"The SVM API description","version":"1.0","contact":{"name":"SVM","url":"https://sportclubvrijwilligersmanagement.nl","email":"support@sportclubvrijwilligersmanagement.nl"}},"tags":[],"servers":[{"url":"https://api.sportclubvrijwilligersmanagement.nl"}],"components":{"securitySchemes":{"API Token":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"SVM API Token"}},"schemas":{"UserDto":{"type":"object","properties":{"fullName":{"type":"string"},"privacy":{"type":"string","enum":["FULL_NAME","FIRST_NAME","LAST_NAME","HIDDEN"]}},"required":["fullName","privacy"]},"CommitteeUserDto":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/UserDto"}},"required":["user"]},"CommitteeDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"users":{"type":"array","items":{"$ref":"#/components/schemas/CommitteeUserDto"}}},"required":["id","name","users"]},"MatchResultDto":{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string"},"homeTeamName":{"type":"string"},"awayTeamName":{"type":"string"},"result":{"type":"string"}},"required":["id","date","homeTeamName","awayTeamName","result"]},"NormalizedSportlinkPoolStanding":{"type":"object","properties":{"position":{"type":"number"},"played":{"type":"number"},"won":{"type":"number"},"draw":{"type":"number"},"lost":{"type":"number"},"goalsFor":{"type":"number"},"goalsAgainst":{"type":"number"},"goalDifference":{"type":"number"},"points":{"type":"number"},"lossPoints":{"type":"number"},"isHomeTeam":{"type":"boolean"},"teamName":{"type":"string"},"providerId":{"type":"string"}},"required":["position","played","won","draw","lost","goalsFor","goalsAgainst","goalDifference","points","lossPoints","isHomeTeam","teamName","providerId"]},"PoolStandingDto":{"type":"object","properties":{"standings":{"type":"array","items":{"$ref":"#/components/schemas/NormalizedSportlinkPoolStanding"}},"name":{"type":"string"},"season":{"type":"string","nullable":true}},"required":["standings","name","season"]},"ServiceDtoV1":{"type":"object","properties":{"type":{"type":"string","enum":["CUSTOM"]},"id":{"type":"string"},"tenantId":{"type":"string"},"description":{"type":"string"},"customType":{"type":"string"},"customName":{"type":"string"},"customSubtitle":{"type":"string"},"enabled":{"type":"boolean"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["type","id","tenantId","description","customType","customName","customSubtitle","enabled","createdAt","updatedAt"]},"ShiftOnUserDto":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/UserDto"},"contactGuardians":{"type":"boolean"}},"required":["user","contactGuardians"]},"PublicShiftTeamDto":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"ShitfOnTeamDto":{"type":"object","properties":{"team":{"$ref":"#/components/schemas/PublicShiftTeamDto"}},"required":["team"]},"ShiftDto":{"type":"object","properties":{"extraData":{"anyOf":[{"type":"array","nullable":true,"items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}},"required":["name"]}},{"description":"Legacy shift data; may contain any JSON value."}]},"id":{"type":"string"},"date":{"type":"string"},"startTime":{"type":"string"},"endTime":{"type":"string"},"serviceId":{"type":"string"},"requiredUsers":{"type":"number"},"users":{"type":"array","items":{"$ref":"#/components/schemas/ShiftOnUserDto"}},"teams":{"type":"array","items":{"$ref":"#/components/schemas/ShitfOnTeamDto"}}},"required":["extraData","id","date","startTime","endTime","serviceId","requiredUsers","users","teams"]},"BarShiftDto":{"type":"object","properties":{"extraData":{"type":"object","properties":{"barType":{"type":"string"}}},"id":{"type":"string"},"date":{"type":"string"},"startTime":{"type":"string"},"endTime":{"type":"string"},"serviceId":{"type":"string"},"requiredUsers":{"type":"number"},"users":{"type":"array","items":{"$ref":"#/components/schemas/ShiftOnUserDto"}},"teams":{"type":"array","items":{"$ref":"#/components/schemas/ShitfOnTeamDto"}}},"required":["extraData","id","date","startTime","endTime","serviceId","requiredUsers","users","teams"]},"PublicJuryTableShiftDto":{"type":"object","properties":{"user":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/UserDto"},{"type":"object","nullable":true,"enum":[null]}]},"type":{"type":"string","enum":["CHAIRMAN","SHOTCLOCK","TIMEKEEPER"]},"contactGuardians":{"type":"boolean"}},"required":["user","type","contactGuardians"]},"PublicJuryTableMatchDto":{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string","format":"date-time"},"homeTeamName":{"type":"string"},"awayTeamName":{"type":"string"},"juryTable":{"type":"array","items":{"$ref":"#/components/schemas/PublicJuryTableShiftDto"}}},"required":["id","date","homeTeamName","awayTeamName","juryTable"]},"ServiceCustomFieldDtoV2":{"type":"object","properties":{"type":{"type":"string","enum":["select","text"]},"name":{"type":"string"},"options":{"type":"array","items":{"type":"string"}}},"required":["type","name"]},"ServiceDtoV2":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"subtitle":{"type":"string"},"enabled":{"type":"boolean"},"customFields":{"type":"array","items":{"$ref":"#/components/schemas/ServiceCustomFieldDtoV2"}}},"required":["id","name","type","subtitle","enabled","customFields"]},"TeamUserDto":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/UserDto"}},"required":["user"]},"TeamDto":{"type":"object","properties":{"fieldType":{"type":"string","enum":["INDOOR","OUTDOOR"]},"id":{"type":"string"},"name":{"type":"string"},"coaches":{"type":"array","items":{"$ref":"#/components/schemas/TeamUserDto"}},"players":{"type":"array","items":{"$ref":"#/components/schemas/TeamUserDto"}},"managers":{"type":"array","items":{"$ref":"#/components/schemas/TeamUserDto"}},"otherMembers":{"type":"array","items":{"$ref":"#/components/schemas/TeamUserDto"}}},"required":["fieldType","id","name","coaches","players","managers","otherMembers"]},"TrainingScheduleLocationDto":{"type":"object","properties":{"fieldType":{"type":"string","enum":["INDOOR","OUTDOOR"]},"id":{"type":"string"},"name":{"type":"string"},"order":{"type":"number"}},"required":["fieldType","id","name","order"]},"TrainingScheduleTeamDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"TrainingScheduleTeamsOnLocationsDto":{"type":"object","properties":{"location":{"$ref":"#/components/schemas/TrainingScheduleLocationDto"},"team":{"$ref":"#/components/schemas/TrainingScheduleTeamDto"}},"required":["location","team"]},"TrainingScheduleSlotDto":{"type":"object","properties":{"startTime":{"type":"string","format":"date-time"},"endTime":{"type":"string","format":"date-time"},"id":{"type":"string"},"locations":{"type":"array","items":{"$ref":"#/components/schemas/TrainingScheduleTeamsOnLocationsDto"}}},"required":["startTime","endTime","id","locations"]},"TrainingScheduleDayOfWeekDto":{"type":"object","properties":{"MONDAY":{"type":"array","items":{"$ref":"#/components/schemas/TrainingScheduleSlotDto"}},"TUESDAY":{"type":"array","items":{"$ref":"#/components/schemas/TrainingScheduleSlotDto"}},"WEDNESDAY":{"type":"array","items":{"$ref":"#/components/schemas/TrainingScheduleSlotDto"}},"THURSDAY":{"type":"array","items":{"$ref":"#/components/schemas/TrainingScheduleSlotDto"}},"FRIDAY":{"type":"array","items":{"$ref":"#/components/schemas/TrainingScheduleSlotDto"}},"SATURDAY":{"type":"array","items":{"$ref":"#/components/schemas/TrainingScheduleSlotDto"}},"SUNDAY":{"type":"array","items":{"$ref":"#/components/schemas/TrainingScheduleSlotDto"}}}},"TrainingScheduleDto":{"type":"object","properties":{"INDOOR":{"allOf":[{"$ref":"#/components/schemas/TrainingScheduleDayOfWeekDto"}]},"OUTDOOR":{"allOf":[{"$ref":"#/components/schemas/TrainingScheduleDayOfWeekDto"}]},"locations":{"type":"array","items":{"$ref":"#/components/schemas/TrainingScheduleLocationDto"}}},"required":["locations"]},"MatchTeamDto":{"type":"object","properties":{"name":{"type":"string"},"attendanceTime":{"type":"integer","nullable":true}},"required":["name","attendanceTime"]},"MatchTransporterAssignmentDto":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/UserDto"}},"required":["user"]},"AccommodationDto":{"type":"object","properties":{"name":{"type":"string"},"route":{"type":"string","nullable":true}},"required":["name"]},"ReserveAssignmentDto":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/UserDto"}},"required":["user"]},"MatchRefereeAssignmentDto":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/UserDto"},"team":{"$ref":"#/components/schemas/PublicShiftTeamDto"}}},"ProgramMatchDto":{"type":"object","properties":{"date":{"type":"string","format":"date-time"},"transporterAssignments":{"type":"array","items":{"$ref":"#/components/schemas/MatchTransporterAssignmentDto"}},"awayTeam":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/MatchTeamDto"},{"type":"object","nullable":true,"enum":[null]}]},"homeTeam":{"nullable":true,"oneOf":[{"$ref":"#/components/schemas/MatchTeamDto"},{"type":"object","nullable":true,"enum":[null]}]},"accommodation":{"$ref":"#/components/schemas/AccommodationDto"},"attendanceTime":{"type":"string","format":"date-time"},"reserveAssignments":{"type":"array","items":{"$ref":"#/components/schemas/ReserveAssignmentDto"}},"id":{"type":"string"},"refereeAssignment":{"$ref":"#/components/schemas/MatchRefereeAssignmentDto"},"reserveRefereeAssignment":{"$ref":"#/components/schemas/MatchRefereeAssignmentDto"},"refereeProviderName":{"type":"string"},"homeTeamName":{"type":"string"},"awayTeamName":{"type":"string"},"isPracticeMatch":{"type":"boolean"},"isHomeMatch":{"type":"boolean"},"notes":{"type":"string","nullable":true},"isCompetitiveMatch":{"type":"boolean"},"fieldName":{"type":"string"}},"required":["date","transporterAssignments","awayTeam","homeTeam","attendanceTime","id","homeTeamName","awayTeamName","isPracticeMatch","isHomeMatch","notes","isCompetitiveMatch"]}}},"security":[{"API Token":[]}]}