findAll()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
1
package com.osomapps.pt.admin.exercise;
2
3
import java.util.List;
4
import org.springframework.beans.factory.annotation.Autowired;
5
import org.springframework.web.bind.annotation.GetMapping;
6
import org.springframework.web.bind.annotation.RequestMapping;
7
import org.springframework.web.bind.annotation.RestController;
8
9
@RestController
10
@RequestMapping("api/v1/admin/exercise-type")
11
class AdminExerciseTypeResource {
12
13
    private final AdminExerciseTypeService exerciseTypeService;
14
15
    @Autowired
16
    AdminExerciseTypeResource(AdminExerciseTypeService exerciseTypeService) {
17
        this.exerciseTypeService = exerciseTypeService;
18
    }
19
20
    @GetMapping
21
    List<ExerciseTypeResponseDTO> findAll() {
22
        return exerciseTypeService.findAll();
23
    }
24
}
25