struct Swagger::Request

Defined in:

swagger/request.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(properties request_properties : Array(Property), description : String? = nil, content_type : String? = nil) #

Returns request with properties

Swagger::Request.new([
  Swagger::Property.new("username", "string", "User name"),
  Swagger::Property.new("email", "string", ""),
  Swagger::Property.new("password"),
  Swagger::Property.new("confirm_password"),
], "User form data", "application/x-www-form-urlencoded")

[View source]
def self.new(ref name : String, description : String? = nil, content_type : String? = nil) #

Returns request with scheme reference

Swagger::Request.new("User", "User struct", "application/x-www-form-urlencoded")

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

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

[View source]

Instance Method Detail

def content_type : String? #

[View source]
def content_type=(content_type) #

[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]