io.github.itroadlabs.apicross.java.SimpleRequestsHandlerMethodNameResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apicross-java Show documentation
Show all versions of apicross-java Show documentation
Base classes for Java code generators
The newest version!
package io.github.itroadlabs.apicross.java;
import io.github.itroadlabs.apicross.core.handler.RequestsHandlerMethodNameResolver;
import io.swagger.v3.oas.models.Operation;
import javax.annotation.Nonnull;
public class SimpleRequestsHandlerMethodNameResolver implements RequestsHandlerMethodNameResolver {
@Nonnull
@Override
public String resolve(@Nonnull Operation operation, @Nonnull String uriPath, String consumesMediaType, String producesMediaType) {
return StringToJavaIdentifierUtil.resolve(operation.getOperationId());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy