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

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

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

[View source]

Instance Method Detail

def code : String #

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

[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 : String) #

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

[View source]
def media_type=(media_type : Swagger::Objects::MediaType | Nil) #

[View source]