Commit cac1ba2 1 parent a890002 commit cac1ba2 Copy full SHA for cac1ba2
File tree 11 files changed +23
-6
lines changed
main/java/heartbeat/controller
test/java/heartbeat/controller
11 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 7
7
import org .springframework .web .bind .annotation .RequestMapping ;
8
8
import org .springframework .web .bind .annotation .RestController ;
9
9
10
+ import io .swagger .v3 .oas .annotations .tags .Tag ;
11
+
10
12
@ RestController
13
+ @ Tag (name = "Health" )
11
14
@ RequestMapping ("/health" )
12
15
@ RequiredArgsConstructor
13
16
public class HealthController {
Original file line number Diff line number Diff line change 7
7
import heartbeat .controller .board .dto .response .JiraVerifyResponse ;
8
8
import heartbeat .exception .BadRequestException ;
9
9
import heartbeat .service .board .jira .JiraService ;
10
+ import io .swagger .v3 .oas .annotations .tags .Tag ;
10
11
import jakarta .validation .Valid ;
11
12
import jakarta .validation .constraints .NotBlank ;
12
13
import lombok .RequiredArgsConstructor ;
18
19
19
20
@ RestController
20
21
@ RequiredArgsConstructor
22
+ @ Tag (name = "Board" )
21
23
@ RequestMapping ("/boards" )
22
- public class JiraController {
24
+ public class BoardController {
23
25
24
26
private final JiraService jiraService ;
25
27
Original file line number Diff line number Diff line change 5
5
import heartbeat .controller .crypto .response .DecryptResponse ;
6
6
import heartbeat .controller .crypto .response .EncryptResponse ;
7
7
import heartbeat .service .crypto .EncryptDecryptService ;
8
+ import io .swagger .v3 .oas .annotations .tags .Tag ;
8
9
import lombok .RequiredArgsConstructor ;
9
10
import lombok .extern .log4j .Log4j2 ;
10
11
import org .springframework .validation .annotation .Validated ;
14
15
15
16
@ Log4j2
16
17
@ RestController
18
+ @ Tag (name = "Crypto" )
17
19
@ RequiredArgsConstructor
18
20
public class CryptoController {
19
21
Original file line number Diff line number Diff line change 6
6
import heartbeat .controller .pipeline .dto .response .BuildKiteResponseDTO ;
7
7
import heartbeat .controller .pipeline .dto .response .PipelineStepsDTO ;
8
8
import heartbeat .service .pipeline .buildkite .BuildKiteService ;
9
+ import io .swagger .v3 .oas .annotations .tags .Tag ;
9
10
import jakarta .validation .Valid ;
10
11
import jakarta .validation .constraints .NotBlank ;
11
12
import lombok .RequiredArgsConstructor ;
23
24
24
25
@ RestController
25
26
@ RequiredArgsConstructor
27
+ @ Tag (name = "Pipeline" )
26
28
@ RequestMapping ("/pipelines" )
27
29
@ Validated
28
30
@ Log4j2
Original file line number Diff line number Diff line change 8
8
import heartbeat .service .report .GenerateReporterService ;
9
9
import heartbeat .service .report .ReportService ;
10
10
import io .swagger .v3 .oas .annotations .media .Schema ;
11
+ import io .swagger .v3 .oas .annotations .tags .Tag ;
11
12
import lombok .RequiredArgsConstructor ;
12
13
import lombok .extern .log4j .Log4j2 ;
13
14
import org .springframework .beans .factory .annotation .Value ;
26
27
27
28
@ RestController
28
29
@ RequiredArgsConstructor
30
+ @ Tag (name = "Report" )
29
31
@ RequestMapping ("/reports" )
30
32
@ Validated
31
33
@ Log4j2
Original file line number Diff line number Diff line change 4
4
import heartbeat .controller .source .dto .SourceControlDTO ;
5
5
import heartbeat .controller .source .dto .VerifyBranchRequest ;
6
6
import heartbeat .service .source .github .GitHubService ;
7
+ import io .swagger .v3 .oas .annotations .tags .Tag ;
7
8
import jakarta .validation .Valid ;
8
9
import lombok .RequiredArgsConstructor ;
9
10
import lombok .extern .log4j .Log4j2 ;
21
22
22
23
@ RestController
23
24
@ RequiredArgsConstructor
25
+ @ Tag (name = "Source Control" )
24
26
@ RequestMapping ("/source-control" )
25
27
@ Validated
26
28
@ Log4j2
27
- public class GithubController {
29
+ public class SourceController {
28
30
29
31
public static final String TOKEN_PATTER = "^(ghp|gho|ghu|ghs|ghr)_([a-zA-Z0-9]{36})$" ;
30
32
Original file line number Diff line number Diff line change 8
8
import lombok .NoArgsConstructor ;
9
9
import lombok .Setter ;
10
10
11
- import static heartbeat .controller .source .GithubController .TOKEN_PATTER ;
11
+ import static heartbeat .controller .source .SourceController .TOKEN_PATTER ;
12
12
13
13
@ Builder
14
14
@ NoArgsConstructor
Original file line number Diff line number Diff line change 9
9
import lombok .NoArgsConstructor ;
10
10
import lombok .Setter ;
11
11
12
- import static heartbeat .controller .source .GithubController .TOKEN_PATTER ;
12
+ import static heartbeat .controller .source .SourceController .TOKEN_PATTER ;
13
13
14
14
@ Builder
15
15
@ NoArgsConstructor
Original file line number Diff line number Diff line change 7
7
import org .springframework .web .bind .annotation .GetMapping ;
8
8
import org .springframework .web .bind .annotation .RequestMapping ;
9
9
import org .springframework .web .bind .annotation .RestController ;
10
+
11
+ import io .swagger .v3 .oas .annotations .tags .Tag ;
12
+
10
13
import org .springframework .beans .factory .annotation .Value ;
11
14
12
15
import java .util .HashMap ;
13
16
import java .util .Map ;
14
17
15
18
@ RestController
16
19
@ RequiredArgsConstructor
20
+ @ Tag (name = "Version" )
17
21
@ RequestMapping ("/version" )
18
22
@ Validated
19
23
@ Log4j2
Original file line number Diff line number Diff line change 28
28
import org .springframework .test .context .junit .jupiter .SpringExtension ;
29
29
import org .springframework .test .web .servlet .MockMvc ;
30
30
31
- @ WebMvcTest (JiraController .class )
31
+ @ WebMvcTest (BoardController .class )
32
32
@ ExtendWith (SpringExtension .class )
33
33
@ AutoConfigureJsonTesters
34
34
public class JiraControllerTest {
Original file line number Diff line number Diff line change 34
34
import static org .springframework .test .web .servlet .result .MockMvcResultMatchers .jsonPath ;
35
35
import static org .springframework .test .web .servlet .result .MockMvcResultMatchers .status ;
36
36
37
- @ WebMvcTest (GithubController .class )
37
+ @ WebMvcTest (SourceController .class )
38
38
@ ExtendWith (SpringExtension .class )
39
39
@ AutoConfigureJsonTesters
40
40
class GithubControllerTest {
You can’t perform that action at this time.
0 commit comments