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 = nil, description : String | Nil = nil, tags : Array(String) | Nil = nil, parameters : Array(Parameter) | Nil = nil, request_body : RequestBody | 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]

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) #

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


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

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

TODO Add instance vars to initialize


[View source]
def summary : String | Nil #

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

[View source]