This commit is contained in:
@@ -71,7 +71,17 @@ export class MatchesController {
|
||||
@ApiQuery({ name: "page", required: false, type: Number })
|
||||
@ApiQuery({ name: "limit", required: false, type: Number })
|
||||
@ApiQuery({ name: "sport", required: false, enum: Sport })
|
||||
@ApiResponse({ status: 200, description: "Paginated list of matches" })
|
||||
@ApiResponse({
|
||||
status: 200,
|
||||
description: "Paginated list of matches",
|
||||
schema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
data: { type: "array", items: { type: "object" } },
|
||||
meta: { type: "object" },
|
||||
},
|
||||
},
|
||||
})
|
||||
async listMatches(
|
||||
@Query("page") page?: string,
|
||||
@Query("limit") limit?: string,
|
||||
@@ -112,6 +122,7 @@ export class MatchesController {
|
||||
@ApiResponse({
|
||||
status: 200,
|
||||
description: "Match details with lineups, stats, odds, events",
|
||||
schema: { type: "object" },
|
||||
})
|
||||
@ApiResponse({ status: 404, description: "Match not found" })
|
||||
async getMatchDetails(@Param("id") id: string) {
|
||||
|
||||
Reference in New Issue
Block a user