struct Swagger::Request
- Swagger::Request
- Struct
- Value
- Object
Defined in:
swagger/request.crConstructors
-
.new(properties request_properties : Array(Property), description : String? = nil, content_type : String? = nil)
Returns request with properties
-
.new(ref name : String, description : String? = nil, content_type : String? = nil)
Returns request with scheme reference
- .new(schema : Schema, description : String? = nil, content_type : String? = nil)
- .new(media_type : MediaType, description : String? = nil, content_type : String? = nil)
Instance Method Summary
- #content_type : String?
- #content_type=(content_type)
- #description : String?
- #description=(description)
- #media_type : Swagger::Objects::MediaType
- #media_type=(media_type)
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")
Returns request with scheme reference
Swagger::Request.new("User", "User struct", "application/x-www-form-urlencoded")