struct Swagger::Objects::Operation

Overview

Operation Object

See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#operationObject

Included Modules

Defined in:

swagger/objects/operation.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(summary : String | Nil = nil, description : String | Nil = nil, tags : Array(String) | Nil = nil, parameters : Array(Parameter) | Nil = nil, request_body : RequestBody | Nil = nil, responses : Hash(String, Response) | Nil = nil, deprecated : Bool = false, security : Array(Hash(String, Array(String))) | Nil = nil) #

[View source]

Class Method Detail

def self.from(action : Action, controller_name : String | Nil = nil, security : Hash(String, Array(String)) | Nil = nil) #

[View source]
def self.parameters(action) #

[View source]
def self.request_body(action) #

[View source]
def self.responses(action) #

[View source]
def self.security(action, security) #

[View source]
def self.tags(name) #

[View source]

Instance Method Detail

def deprecated : Bool #

[View source]
def description : String | Nil #

[View source]
def external_docs : Example | Nil #

[View source]
def operation_id : String | Nil #

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

[View source]
def request_body : RequestBody | Nil #

[View source]
def responses : Hash(String, Response) | Nil #

[View source]
def security : Array(Hash(String, Array(String))) | Nil #

[View source]
def servers : Array(Server) | Nil #

TODO Add instace vars to initialize


[View source]
def summary : String | Nil #

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

[View source]