findAll()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 3
c 1
b 0
f 0
rs 10
cc 1
1
package com.osomapps.pt.admin.user;
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/user-gender")
11
class AdminUserGenderResource {
12
13
    private final AdminUserGenderService userGenderService;
14
15
    @Autowired
16
    AdminUserGenderResource(AdminUserGenderService userGenderService) {
17
        this.userGenderService = userGenderService;
18
    }
19
20
    @GetMapping
21
    List<UserGenderResponseDTO> findAll() {
22
        return userGenderService.findAll();
23
    }
24
}
25