Skip to content

Commit

Permalink
Changed new parameters to non-required
Browse files Browse the repository at this point in the history
  • Loading branch information
zack-rma authored and adamkorynta committed Nov 18, 2024
1 parent bf541ae commit c153805
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,11 @@ public void getOne(@NotNull Context ctx, @NotNull String groupId) {
LocationGroupDao cdm = new LocationGroupDao(dsl);
String office = requiredParam(ctx, OFFICE);
String categoryId = requiredParam(ctx, CATEGORY_ID);
String groupOfficeId = requiredParam(ctx, GROUP_OFFICE_ID);
String categoryOfficeId = requiredParam(ctx, CATEGORY_OFFICE_ID);

// Not marked as required to maintain backwards compatibility with existing clients
String groupOfficeId = ctx.queryParam(GROUP_OFFICE_ID);
String categoryOfficeId = ctx.queryParam(CATEGORY_OFFICE_ID);

String formatHeader = ctx.header(Header.ACCEPT);
String result;
ContentType contentType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ public void getOne(@NotNull Context ctx, @NotNull String groupId) {
TimeSeriesGroupDao dao = new TimeSeriesGroupDao(dsl);
String office = ctx.queryParam(OFFICE);
String categoryId = ctx.queryParam(CATEGORY_ID);
String groupOffice = requiredParam(ctx, GROUP_OFFICE_ID);
String categoryOffice = requiredParam(ctx, CATEGORY_OFFICE_ID);

// Not marked as required to maintain backwards compatibility with existing clients
String groupOffice = ctx.queryParam(GROUP_OFFICE_ID);
String categoryOffice = ctx.queryParam(CATEGORY_OFFICE_ID);

String formatHeader = ctx.header(Header.ACCEPT);
ContentType contentType = Formats.parseHeader(formatHeader, TimeSeriesGroup.class);
Expand Down

0 comments on commit c153805

Please sign in to comment.