struct Swagger::Action
- Swagger::Action
- Struct
- Value
- Object
Overview
Define a action
Swagger::Action.new("get", "/users", "List Users", [
Swagger::Parameter.new("page", "query", "integer", "Current page", default_value: 1, format: "int32"),
Swagger::Parameter.new("limit", "query", "integer", "How many items to return at one time (max 100)", default_value: 50, format: "int32"),
])
Defined in:
swagger/action.crConstructors
Instance Method Summary
- #authorization : Bool
- #authorization=(authorization)
- #deprecated : Bool
- #deprecated=(deprecated)
- #description : String?
- #description=(description)
- #method : String
- #method=(method)
- #parameters : Array(Swagger::Parameter)?
- #parameters=(parameters)
- #request : Swagger::Request?
- #request=(request)
- #responses : Array(Swagger::Response)
- #responses=(responses)
- #route : String
- #route=(route)
- #summary : String?
- #summary=(summary)
Constructor Detail
def self.new(method : String, route : String, responses : Array(Response), summary : String? = nil, parameters : Array(Parameter)? = nil, description : String? = nil, request : Request? = nil, authorization = false, deprecated = false)
#