Skip to content

Conversation

@Nefarious46
Copy link
Contributor

@Nefarious46 Nefarious46 requested a review from kortemik November 26, 2025 16:19
@Nefarious46 Nefarious46 self-assigned this Nov 26, 2025
@Nefarious46 Nefarious46 added the enhancement New feature or request label Nov 26, 2025
public class CaptureGroup {

public enum group_type {
public enum groupType {
Copy link
Member

Choose a reason for hiding this comment

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

enums are like classes, their name must start with capital and values must be capitalized

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Enums fixed in this one but there will be separate PR where all enums are corrected as such to avoid mismatches with database insertions.


@RestController
@RequestMapping(path = "capture")
@RequestMapping(path = "capture/group")
Copy link
Member

Choose a reason for hiding this comment

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

let's paths to

/v2/captures/group/1
/v2/captures/capture/1

// GET ALL
@RequestMapping(
path = "/group",
path = "/{id}",
Copy link
Member

Choose a reason for hiding this comment

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

see previous api path changes for refactoring this

}

@RequestMapping(
path = "/{id}",
Copy link
Member

Choose a reason for hiding this comment

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

/v2/captures/group/$groupId

@Nefarious46
Copy link
Contributor Author

Paths corrected as suggested.

@Nefarious46
Copy link
Contributor Author

Renamed CaptureGroupController to CaptureGroupsController since it is handling group specifics and not singular group. CaptureGroupController will be included in the linking Controller. #197

@kortemik kortemik merged commit ca9e945 into teragrep:main Dec 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants