/// <summary> /// Defines the operation for the path and method; /// </summary> /// <param name="operation"> /// The operation. /// </param> /// <returns> /// The <see cref="PathItemBuilder"/>. /// </returns> public PathItemBuilder Operation(Action<OperationBuilder> action) { var builder = new OperationBuilder(); action(builder); builder.Build(this.operation); return this; }
/// <summary> /// Defines the operation for the path and method; /// </summary> /// <param name="operation"> /// The operation. /// </param> /// <returns> /// The <see cref="PathItemBuilder"/>. /// </returns> public PathItemBuilder Operation(Action <OperationBuilder> action) { var builder = new OperationBuilder(); action(builder); builder.Build(this.operation); return(this); }
/// <summary> /// Add a parameter for this operation /// </summary> /// <param name="op">The Operation Builder</param> /// <returns> /// The <see cref="PathItemBuilder"/>. /// </returns> public PathItemBuilder Operation(OperationBuilder op) { op.Build(this.operation); return(this); }