class Swagger::Builder
- Swagger::Builder
- Reference
- Object
Overview
Swagger Builder
Defined in:
swagger/builder.crConstructors
- .new(title : String, version : String, description : String? = nil, terms_url : String? = nil, license : License? = nil, contact : Contact? = nil, authorizations : Array(Authorization)? = nil)
- .new(info : Info, authorizations : Array(Authorization)? = nil)
Instance Method Summary
- #<<(object : Object)
- #<<(controller : Controller)
- #<<(server : Server)
- #add(object : Object)
- #add(controller : Controller)
- #add(server : Server)
- #add(*, controller name : String, description : String, actions : Array(Action), external_docs : Objects::ExternalDocs? = nil)
- #add(*, server name : String, description : String? = nil, variables : Array(Variable)? = nil)
- #build_security(security_schemes)
- #build_security_schemes
- #built
- #controllers : Array(Swagger::Controller)
- #controllers=(controllers)
- #info : Swagger::Objects::Info
- #info=(info)
- #objects : Array(Swagger::Object)
- #objects=(objects)
- #servers : Array(Swagger::Server)
- #servers=(servers)
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)
#
Instance Method Detail
def add(*, controller name : String, description : String, actions : Array(Action), external_docs : Objects::ExternalDocs? = nil)
#