struct Swagger::Response

Defined in:

swagger/response.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(code : String, description : String, reference name : String, content_type : String? = nil) #

[View source]
def self.new(code : String, description : String, media_type : Objects::MediaType? = nil, content_type : String? = nil) #

[View source]
def self.new(code : String, description : String, schema : Schema, content_type : String? = nil) #

[View source]

Instance Method Detail

def code : String #

[View source]
def code=(code) #

[View source]
def content #

[View source]
def content_type : String #

[View source]
def content_type=(content_type : String) #

[View source]
def description : String #

[View source]
def description=(description) #

[View source]
def media_type : Swagger::Objects::MediaType? #

[View source]
def media_type=(media_type) #

[View source]