Qore Swagger Module Reference
2.0.6
|
This class stores the path tree for URI path matching. More...
Public Member Methods | |
constructor (hash< auto > oh, SwaggerSchema swagger) | |
Constructor. More... | |
hash< string, list< string > > | getPathOperationHash () |
returns a hash of URI paths as keys with values as lists of supported HTTP methods More... | |
PathItemObject | match (string path) |
matches a URI path with a PathItemObject More... | |
*PathItemObject | tryMatch (string path) |
matches a URI path with a PathItemObject More... | |
Public Member Methods inherited from Swagger::ObjectBase | |
constructor () | |
Constructor. | |
constructor (hash< auto > oh) | |
Constructor. More... | |
constructor (ObjectBase other) | |
copy constructor | |
initialize (hash< auto > oh) | |
Initialize. More... | |
Private Attributes | |
PathComponent | paths |
the tree of path components for path matching with wildcards | |
Additional Inherited Members | |
Public Attributes inherited from Swagger::ObjectBase | |
hash< auto > | vendorExtensions |
Allows extensions to the Swagger Schema. More... | |
This class stores the path tree for URI path matching.
Swagger::PathsObject::constructor | ( | hash< auto > | oh, |
SwaggerSchema | swagger | ||
) |
Constructor.
oh | deserialized hash from the source schema description describing paths to schema endpoints |
swagger | the REST schema for resolving references |
INVALID-FIELD-FORMAT | field has invalid format |
INVALID-FIELD-TYPE | field has invalid type |
INVALID-FIELD-VALUE | field has invalid value |
returns a hash of URI paths as keys with values as lists of supported HTTP methods
PathItemObject Swagger::PathsObject::match | ( | string | path | ) |
matches a URI path with a PathItemObject
INVALID-PATH | the path could not be matched |
*PathItemObject Swagger::PathsObject::tryMatch | ( | string | path | ) |
matches a URI path with a PathItemObject
INVALID-PATH | the path could not be matched |