bb828d7532
Release package / release (push) Successful in 30m35s
Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Reviewed-on: #46
25 lines
623 B
Java
25 lines
623 B
Java
package com.drinkool.controllers;
|
|
|
|
import io.smallrye.mutiny.Uni;
|
|
import jakarta.ws.rs.GET;
|
|
import jakarta.ws.rs.Path;
|
|
import jakarta.ws.rs.PathParam;
|
|
import jakarta.ws.rs.core.Response;
|
|
import java.util.UUID;
|
|
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
|
|
|
|
@RegisterRestClient(configKey = "eatery")
|
|
@Path("/")
|
|
public interface EateryController {
|
|
@GET
|
|
@Path("/{id}")
|
|
Uni<Response> getEateryById(@PathParam("id") UUID id);
|
|
|
|
@GET
|
|
@Path("/{eateryId}/{menuItemId}")
|
|
public Uni<Response> checkMenuItemExists(
|
|
@PathParam("eateryId") UUID eateryId,
|
|
@PathParam("menuItemId") UUID menuItemId
|
|
);
|
|
}
|