88244cb56f
Release package / release (push) Successful in 30m1s
Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Reviewed-on: #52
23 lines
604 B
Java
23 lines
604 B
Java
package com.drinkool.controllers;
|
|
|
|
import com.drinkool.Role;
|
|
import jakarta.ws.rs.GET;
|
|
import jakarta.ws.rs.Path;
|
|
import jakarta.ws.rs.PathParam;
|
|
import jakarta.ws.rs.QueryParam;
|
|
import jakarta.ws.rs.core.Response;
|
|
import java.util.UUID;
|
|
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
|
|
|
|
@RegisterRestClient(configKey = "eatery")
|
|
@Path(Role.Manager)
|
|
public interface ManagerController {
|
|
@GET
|
|
@Path(Role.Manager + "/{id}/payment-qr")
|
|
public Response getManagerPaymentQr(
|
|
@PathParam("id") UUID id,
|
|
@QueryParam("amount") Long amount,
|
|
@QueryParam("cartId") String cartId
|
|
);
|
|
}
|