io.quarkus.runtime.rest.DisabledRestEndpoints Maven / Gradle / Ivy
The newest version!
package io.quarkus.runtime.rest;
import java.util.List;
import java.util.Map;
/**
* This class serves for passing a list of disabled REST paths (via the `@EndpointDisabled` annotation)
* so that an OpenAPI filter can omit them from the generated OpenAPI document.
*/
public class DisabledRestEndpoints {
// keys are REST paths, values are HTTP methods disabled on the given path
private static Map> endpoints;
public static void set(Map> endpoints) {
DisabledRestEndpoints.endpoints = endpoints;
}
public static Map> get() {
return endpoints;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy