wip: swagger p2
This commit is contained in:
@@ -6,6 +6,7 @@ import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.PathParam;
|
||||
import jakarta.ws.rs.Produces;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
import org.eclipse.microprofile.openapi.annotations.Operation;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Locale;
|
||||
@@ -16,6 +17,7 @@ public class CountriesEndpoints {
|
||||
@GET
|
||||
@Path("/{lang}/{code}")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@Operation(hidden = true)
|
||||
public Uni<HashMap<String, String>> getCountries(@PathParam("lang") String lang, @PathParam("code") String code) {
|
||||
Locale locale = new Locale(lang, code);
|
||||
return Uni.createFrom().item(new HashMap<String, String>())
|
||||
|
||||
Reference in New Issue
Block a user