Files
backend/gateway-service/src/main/java/com/drinkool/services/FileService.java
T
TakahashiNg 4aaad8338e
Java CI with Maven / build-and-test (pull_request) Successful in 31m12s
chore: update
2026-05-10 12:08:18 +00:00

25 lines
563 B
Java

package com.drinkool.services;
import io.smallrye.mutiny.Uni;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.core.Response;
import java.io.File;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import org.jboss.resteasy.reactive.RestForm;
@RegisterRestClient(configKey = "file")
@Path("/")
public interface FileService {
@POST
Uni<Response> upload(@RestForm File file);
@GET
@Path("/{name}")
Uni<Response> get(@PathParam("name") String name);
}