Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ public enum Whitelist {
EXAM_AREAS("/api/v1/exam/areas", WhitelistMethod.GET),
EXAM_ALL("/api/v1/exam/all", WhitelistMethod.GET),

//USER find-id
USER_FIND_ID("/api/v1/user/find-id", WhitelistMethod.POST),
//USER find-password
Comment on lines +49 to +51

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider grouping related enum constants under a single, descriptive comment for better readability and to avoid redundancy. The current comments are scattered and repeat information already present in the enum constant names.

Suggested change
//USER find-id
USER_FIND_ID("/api/v1/user/find-id", WhitelistMethod.POST),
//USER find-password
// User account recovery
USER_FIND_ID("/api/v1/user/find-id", WhitelistMethod.POST),
USER_FIND_PASSWORD("/api/v1/user/find-password", WhitelistMethod.POST),

USER_FIND_PASSWORD("/api/v1/user/find-password", WhitelistMethod.POST),

APPLICATION_GUEST("/api/v1/applications/guest", WhitelistMethod.ALL);
private final String path;
private final WhitelistMethod method;
Expand Down