struct Swagger::Objects::PathItem

Overview

Path Item Object

See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#pathItemObject

Included Modules

Defined in:

swagger/objects/path_item.cr

Constant Summary

METHODS = ["get", "put", "post", "delete", "options", "head", "patch", "trace"] of ::String

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(summary : String | Nil = nil, description : String | Nil = nil, ref : String | Nil = nil) #

[View source]

Instance Method Detail

def add(method, operation) #

[View source]
def delete : Objects::Operation | Nil #

[View source]
def description : String | Nil #

[View source]
def get : Objects::Operation | Nil #

[View source]
def head : Objects::Operation | Nil #

[View source]
def options : Objects::Operation | Nil #

[View source]
def patch : Objects::Operation | Nil #

[View source]
def post : Objects::Operation | Nil #

[View source]
def put : Objects::Operation | Nil #

[View source]
def ref : String | Nil #

[View source]
def summary : String | Nil #

[View source]
def trace : Objects::Operation | Nil #

[View source]