Skip to content

Commit

Permalink
SMA-36: regenerated client
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejFrnka committed Apr 13, 2024
1 parent 95c482c commit ff59812
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/sportsmatch-app/src/generated/api/models/EventDTO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { PlaceDTO } from './PlaceDTO';
export type EventDTO = {
id?: number;
dateStart: string;
Expand All @@ -15,6 +15,6 @@ export type EventDTO = {
sport: string;
player1Name?: string;
player2Name?: string;
placeDTO?: PlaceDTO;
placeDTO: PlaceDTO;
};

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export type HostEventDTO = {
maxElo: number;
title: string;
sport: string;
locationId?: number;
locationId: number;
};

Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,25 @@ export class EventsControllerService {
});
}
/**
* @param page Zero-based page index (0..N)
* @param size The size of the page to be returned
* @param sort Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
* @returns EventDTO OK
* @throws ApiError
*/
public static getUpcomingMatches(): CancelablePromise<Array<EventDTO>> {
public static getUpcomingMatches(
page?: number,
size: number = 20,
sort?: Array<string>,
): CancelablePromise<Array<EventDTO>> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/v1/event/upcoming-matches',
query: {
'page': page,
'size': size,
'sort': sort,
},
});
}
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,4 @@ export class RatingControllerService {
url: '/api/v1/rating/check',
});
}

}

0 comments on commit ff59812

Please sign in to comment.