class Open::Api::OperationItem

Included Modules

Defined in:

open-api/operation_item.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(summary : String | Nil = nil, operation_id : String | Nil = nil, description : String | Nil = nil, tags : Array(String) = Array(String).new, parameters : Array(Parameter | Ref) = Array(Parameter | Ref).new, request_body : Open::Api::RequestBody | Open::Api::Ref | Nil = nil, responses : Responses = Responses.new, security : Array(Open::Api::Security::Requirement) | Nil = nil) #

[View source]
def self.new(summary : Nil | String) #

[View source]

Instance Method Detail

def description : String | Nil #

A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation.


[View source]
def description=(description : String | Nil) #

A verbose explanation of the operation behavior. CommonMark syntax MAY be used for rich text representation.


[View source]
def operation_id : String | Nil #

[View source]
def operation_id=(operation_id : String | Nil) #

[View source]
def parameters : Array(Parameter | Ref) #

[View source]
def parameters=(parameters : Array(Parameter | Ref)) #

[View source]
def request_body : Open::Api::RequestBody | Open::Api::Ref | Nil #

[View source]
def request_body=(request_body : Open::Api::RequestBody | Open::Api::Ref | Nil) #

[View source]
def responses : Responses #

REQUIRED. The list of possible responses as they are returned from executing this operation.


[View source]
def responses=(responses : Responses) #

REQUIRED. The list of possible responses as they are returned from executing this operation.


[View source]
def security : Array(Open::Api::Security::Requirement) | Nil #

A declaration of which security mechanisms can be used for this operation


[View source]
def security=(security : Array(Open::Api::Security::Requirement) | Nil) #

A declaration of which security mechanisms can be used for this operation


[View source]
def summary : String | Nil #

A short summary of what the operation does.


[View source]
def summary=(summary : String | Nil) #

A short summary of what the operation does.


[View source]
def tags : Array(String) #

A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.


[View source]
def tags=(tags : Array(String)) #

A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.


[View source]