This commit is contained in:
@@ -56,6 +56,11 @@ export class PredictionsController {
|
||||
*/
|
||||
@Get("test/:id")
|
||||
@ApiOperation({ summary: "Refetch match data and get prediction" })
|
||||
@ApiResponse({
|
||||
status: 200,
|
||||
description: "Prediction details",
|
||||
schema: { type: "object" },
|
||||
})
|
||||
@ApiParam({ name: "id", description: "Match ID" })
|
||||
async getTestPrediction(@Param("id") id: string) {
|
||||
return this.predictionsService.testPrediction(id);
|
||||
@@ -91,7 +96,12 @@ export class PredictionsController {
|
||||
@Public()
|
||||
@ApiOperation({ summary: "Get prediction for a specific match" })
|
||||
@ApiParam({ name: "matchId", description: "Match ID" })
|
||||
@ApiResponse({ status: 200, type: MatchPredictionDto })
|
||||
@ApiResponse({
|
||||
status: 200,
|
||||
description: "Match prediction",
|
||||
schema: { type: "object" },
|
||||
type: MatchPredictionDto,
|
||||
})
|
||||
@ApiResponse({ status: 404, description: "Match not found" })
|
||||
async getPrediction(
|
||||
@Param("matchId") matchId: string,
|
||||
@@ -145,6 +155,7 @@ export class PredictionsController {
|
||||
@ApiResponse({
|
||||
status: 200,
|
||||
description: "Smart coupon generated successfully",
|
||||
schema: { type: "object" },
|
||||
})
|
||||
async generateSmartCoupon(@Body() dto: SmartCouponRequestDto): Promise<any> {
|
||||
const coupon = await this.predictionsService.getSmartCoupon(
|
||||
|
||||
Reference in New Issue
Block a user