class Swagger::Builder

Overview

Swagger Builder

Defined in:

swagger/builder.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(title : String, version : String, description : String? = nil, terms_url : String? = nil, license : License? = nil, contact : Contact? = nil, authorizations : Array(Authorization)? = nil) #

[View source]
def self.new(info : Info, authorizations : Array(Authorization)? = nil) #

[View source]

Instance Method Detail

def <<(object : Object) #

[View source]
def <<(controller : Controller) #

[View source]
def <<(server : Server) #

[View source]
def add(object : Object) #

[View source]
def add(controller : Controller) #

[View source]
def add(server : Server) #

[View source]
def add(*, controller name : String, description : String, actions : Array(Action), external_docs : Objects::ExternalDocs? = nil) #

[View source]
def add(*, server name : String, description : String? = nil, variables : Array(Variable)? = nil) #

[View source]
def build_security(security_schemes) #

[View source]
def build_security_schemes #

[View source]
def built #

[View source]
def controllers : Array(Swagger::Controller) #

[View source]
def controllers=(controllers) #

[View source]

[View source]
def info=(info) #

[View source]
def objects : Array(Swagger::Object) #

[View source]
def objects=(objects) #

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

[View source]
def servers=(servers) #

[View source]