diff --git a/frontend/src/restapi/doubles-tournament/DoublesTournamentRestApi.ts b/frontend/src/restapi/doubles-tournament/DoublesTournamentRestApi.ts index 2caef94e..7fa8ad7d 100644 --- a/frontend/src/restapi/doubles-tournament/DoublesTournamentRestApi.ts +++ b/frontend/src/restapi/doubles-tournament/DoublesTournamentRestApi.ts @@ -1,6 +1,6 @@ import axios from "axios"; import {PATH_BASE_URL} from "../../components/atoms/constants/apiPaths"; -import {MatchDetailsDto} from "./MatchDetailsDto"; +import {TournamentPlaceListDto} from "./TournamentPlaceListDto"; export type DoublesTournamentRestApiConfig = { readonly baseUrl: string; @@ -22,9 +22,9 @@ export const DoublesTournamentRestAPI = ( defaultConfig.baseUrl, }; return { - getTournamentResult(tournamentId: string): Promise { + getTournamentPlaces(tournamentId: string): Promise { return axios - .get(`${currentConfig.baseUrl}/doubles-tournament/${tournamentId}/places`) + .get(`${currentConfig.baseUrl}/doubles-tournament/${tournamentId}/places`) .then((res) => res.data) }, }; diff --git a/frontend/src/restapi/doubles-tournament/TournamentPlaceDto.ts b/frontend/src/restapi/doubles-tournament/TournamentPlaceDto.ts new file mode 100644 index 00000000..48f7600d --- /dev/null +++ b/frontend/src/restapi/doubles-tournament/TournamentPlaceDto.ts @@ -0,0 +1,4 @@ +export type TournamentPlaceDto = { + readonly tournamentId: string; + readonly placeNumber: number; +} \ No newline at end of file diff --git a/frontend/src/restapi/doubles-tournament/TournamentPlaceListDto.ts b/frontend/src/restapi/doubles-tournament/TournamentPlaceListDto.ts new file mode 100644 index 00000000..34027eed --- /dev/null +++ b/frontend/src/restapi/doubles-tournament/TournamentPlaceListDto.ts @@ -0,0 +1,5 @@ +import {TournamentPlaceDto} from "./TournamentPlaceDto"; + +export type TournamentPlaceListDto = { + readonly items: TournamentPlaceDto[]; +};