Swagger::Action
Inherits Struct < Value < Object
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"),
])
Constructors
new(method : String, route : String, responses : Array(Response), summary : String | Nil = nil, parameters : Array(Parameter) | Nil = nil, description : String | Nil = nil, request : Request | Nil = nil, authorization : Bool = false, deprecated : Bool = false)
SourceInstance methods
authorization
Sourceauthorization=(authorization : Bool)
Sourcedeprecated
Sourcedeprecated=(deprecated : Bool)
Sourcedescription
Sourcedescription=(description : Nil | String)
Sourcemethod
Sourcemethod=(method : String)
Sourceparameters
Sourcerequest
Sourceresponses
Sourceroute
Sourceroute=(route : String)
Sourcesummary
Sourcesummary=(summary : Nil | String)
Source