Class OpenApiProtocol.Operation

  • Enclosing interface:
    OpenApiProtocol<T extends Trait>

    public static final class OpenApiProtocol.Operation
    extends java.lang.Object
    Represents an operation entry to add to an OpenApi.Builder.
    • Method Detail

      • create

        public static OpenApiProtocol.Operation create​(java.lang.String method,
                                                       java.lang.String uri,
                                                       OperationObject.Builder operation)
        Creates a new operation entry.
        Parameters:
        method - HTTP method used for the operation.
        uri - HTTP URI of the operation.
        operation - Operation builder to return.
        Returns:
        Returns the created Operation entry.
      • getMethod

        public java.lang.String getMethod()
        Returns:
        Gets the HTTP method.
      • getUri

        public java.lang.String getUri()
        Returns:
        Gets the HTTP URI.