Skip to content

Commit

Permalink
Merge pull request #48 from Nexters/fix/swagger
Browse files Browse the repository at this point in the history
fix: nginx 버퍼링 설정 수정
  • Loading branch information
parkdaye authored Aug 18, 2023
2 parents ca2a33e + e1aae9a commit 04fff29
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class NotificationController {

@GetMapping(value = "/team-building/{teamBuildingUuid}/subscribe", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
public ResponseEntity<SseEmitter> subscribe(@PathVariable("teamBuildingUuid") String teamBuildingUuid) {
return ResponseEntity.ok(notificationService.subscribe(teamBuildingUuid));
return ResponseEntity.ok()
.header("X-Accel-Buffering", "no")
.body(notificationService.subscribe(teamBuildingUuid));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ public ResponseEntity<TeamBuildingResponse> createTeamBuilding(
""")
@PostMapping("/{teamBuildingUuid}/users/{userUuid}")
public ResponseEntity<UserInfo> adjustUser(@PathVariable(value = "teamBuildingUuid") String teamBuildingUuid,
@PathVariable(value = "userUuid") String userUuid, @RequestBody @Valid UserAdjustRequest userAdjustRequest) {
return ResponseEntity.ok(adminService.adjustUser(teamBuildingUuid, userUuid, userAdjustRequest.getTeamUuid()));
@PathVariable(value = "userUuid") String userUuid, @RequestBody @Valid UserAdjustRequest userAdjustRequest) {
return ResponseEntity.ok()
.header("X-Accel-Buffering", "no")
.body(adminService.adjustUser(teamBuildingUuid, userUuid, userAdjustRequest.getTeamUuid()));
}

@Operation(summary = "팀원 삭제 (단일 유저) ", description = """
Expand All @@ -58,9 +60,11 @@ public ResponseEntity<UserInfo> adjustUser(@PathVariable(value = "teamBuildingUu
""")
@DeleteMapping("/{teamBuildingUuid}/users/{userUuid}")
public ResponseEntity<Void> deleteUser(@PathVariable(value = "teamBuildingUuid") String teamBuildingUuid,
@PathVariable(value = "userUuid") String userUuid) {
@PathVariable(value = "userUuid") String userUuid) {
adminService.deleteTeamBuildingUser(teamBuildingUuid, userUuid);
return ResponseEntity.ok().build();
return ResponseEntity.ok()
.header("X-Accel-Buffering", "no")
.build();
}

@Operation(summary = "팀 빌딩 마치기", description = """
Expand All @@ -70,6 +74,8 @@ public ResponseEntity<Void> deleteUser(@PathVariable(value = "teamBuildingUuid")
@PutMapping("/{teamBuildingUuid}/finish")
public ResponseEntity<Void> finishTeamBuilding(@PathVariable(value = "teamBuildingUuid") String teamBuildingUuid) {
adminService.finishTeamBuilding(teamBuildingUuid);
return ResponseEntity.ok().build();
return ResponseEntity.ok()
.header("X-Accel-Buffering", "no")
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ public ResponseEntity<UserPickResponse> pickUsers(
@PathVariable(value = "teamBuildingUuid") String teamBuildingUuid,
@PathVariable(value = "teamUuid") String teamUuid,
@RequestBody @Valid UserPickRequest userPickRequest) {
return ResponseEntity.ok(coreService.pickUsers(teamBuildingUuid, teamUuid, userPickRequest));
return ResponseEntity.ok()
.header("X-Accel-Buffering", "no")
.body(coreService.pickUsers(teamBuildingUuid, teamUuid, userPickRequest));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public class UserSurveyController {
@PostMapping("/{teamBuildingUuid}/users")
public ResponseEntity<UserInfo> createUser(@PathVariable(value = "teamBuildingUuid") String teamBuildingUuid,
@RequestBody @Valid UserRequest userRequest) {
return ResponseEntity.ok(userService.createUser(teamBuildingUuid, userRequest));
return ResponseEntity.ok()
.header("X-Accel-Buffering", "no")
.body(userService.createUser(teamBuildingUuid, userRequest));
}

@Operation(summary = "팀 빌딩 팀 데이터 조회", description = "팀 빌딩, 팀 정보가 조회됩니다. (유저 선택 정보 제외) ")
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spring:
hibernate:
format_sql: true
dialect: org.hibernate.dialect.MySQLDialect
default_batch_fetch_size: 10
default_batch_fetch_size: 100
open-in-view: false

mvc:
Expand Down

0 comments on commit 04fff29

Please sign in to comment.