Swagger Details - Will-Java-FS/revlearn-backend-team1 GitHub Wiki

Use the Operation Annotation to add details to your routes' Swagger UI documentation.

Example controller method

    @PutMapping("{programId}")
    @Operation(summary = "Update a Program", description = "Update an existing program.", tags = {"program"})
    public ProgramResDTO updateProgram(@PathVariable Long programId, @RequestBody ProgramReqDTO programReqDTO) {
        return programService.updateProgram(programId, programReqDTO);
    }

SwaggerDetails2