All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pub.codex.apix.operation.DefaultOperationReader Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package pub.codex.apix.operation;

import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import pub.codex.apix.context.OperationContext;

@Component
@Order(Ordered.DefaultOperationReader)
public class DefaultOperationReader implements OperationBuilderPlugin {

    @Override
    public void apply(OperationContext context) {
        String operationName = context.getName();
        context.operationBuilder()
                .setMethod(context.httpMethod())
                .setSummary(operationName);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy