struct Swagger::Objects::Operation

Overview

Operation Object

See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.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(responses : Hash(String, Response), summary : String? = nil, description : String? = nil, tags : Array(String)? = nil, parameters : Array(Parameter)? = nil, request_body : RequestBody? = nil, deprecated : Bool = false, security : Array(Hash(String, Array(String)))? = nil) #

[View source]

Class Method Detail

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

[View source]

Instance Method Detail

def deprecated : Bool #

[View source]
def description : String? #

[View source]
def external_docs : Example? #

[View source]
def operation_id : String? #

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

[View source]
def request_body : RequestBody? #

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

List of possible responses as they are returned from executing this operation.


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

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

TODO Add instance vars to initialize


[View source]
def summary : String? #

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

[View source]