fix: missing required parameters (#27)
Release package / release (push) Successful in 16m8s

Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com>
Reviewed-on: #27
This commit was merged in pull request #27.
This commit is contained in:
2026-04-18 10:22:18 +00:00
parent bb8a9c5691
commit 96171d3ec2
3 changed files with 12 additions and 7 deletions
@@ -1,13 +1,13 @@
package com.drinkool.controller;
import com.drinkool.Role;
import com.drinkool.Url;
import com.drinkool.*;
import com.drinkool.dtos.*;
import com.drinkool.services.CustomerService;
import io.smallrye.mutiny.Uni;
import jakarta.inject.Inject;
import jakarta.ws.rs.*;
import jakarta.ws.rs.core.Response;
import java.util.*;
import org.eclipse.microprofile.rest.client.inject.RestClient;
@Path("/api/" + Role.Customer)
@@ -30,7 +30,7 @@ public class CustomerController {
}
@GET
public Uni<Response> me() {
return accountService.me();
public Uni<Response> me(@HeaderParam(InternalValue.userId) UUID id) {
return accountService.me(id);
}
}
@@ -1,11 +1,11 @@
package com.drinkool.services;
import com.drinkool.Role;
import com.drinkool.Url;
import com.drinkool.*;
import com.drinkool.dtos.*;
import io.smallrye.mutiny.Uni;
import jakarta.ws.rs.*;
import jakarta.ws.rs.core.Response;
import java.util.*;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
@RegisterRestClient(configKey = "account")
@@ -29,5 +29,5 @@ public interface CustomerService {
@GET
@Path(Url.Me)
Uni<Response> me();
Uni<Response> me(@HeaderParam(InternalValue.userId) UUID id);
}