|
| constructor (string path, string method, hash< auto > oh, SwaggerSchema swagger) |
| Constructor.
|
|
hash< RestSchemaValidator::RestExampleRequestInfo > | getExampleRequest (string method, string path, PathItemObject pio, SwaggerSchema swagger, reference rbody) |
| returns a hash of example message information for the given request
|
|
hash< RestExampleResponseInfo > | getExampleResponse (string method, string path, int code, reference< auto > body) |
| returns a hash of example message information for the given request
|
|
hash< RestQoreExampleCodeInfo > | getQoreExampleRequest (string method, string path, PathItemObject pio, SwaggerSchema swagger) |
| returns example Qore code for the given request
|
|
hash< RestQoreExampleCodeInfo > | getQoreExampleResponse (string method, string path, int code) |
| returns example Qore code for the given response
|
|
*data | getRequestBody (PathItemObject pio, auto body, reference< hash< auto > > headers, *bool freeform) |
| Processes a generated request.
|
|
| parseRequest (PathItemObject pio, reference< hash< UriQueryInfo > > h, reference< auto > body, reference< hash > headers) |
| parses and processes a REST request on the server side
|
|
| validateRequest (bool serialize, PathItemObject pio, reference< hash< UriQueryInfo > > h, reference< auto > body, reference< hash > headers, *reference< hash< string, bool > > mime_types, *bool freeform) |
| processes a REST API client-side request to the operation
|
|
| validateResponse (string method, string path, PathItemObject pio, int http_code, reference< auto > response_body, reference< hash< string, bool > > mime_types, bool deserialize=True) |
| validates a response against the response definition, if any
|
|
| addParameter (AbstractParameterObject p) |
| Adds a parameter to the group.
|
|
| addParameter (string key, AbstractParameterObject p) |
| Adds a parameter to the group.
|
|
| constructor (hash< auto > oh) |
| Creates the object from the hash definition.
|
|
hash< string, AbstractParameterObject > | parameters () |
| A hash of parameters for this object.
|
|
| constructor () |
| Constructor.
|
|
| constructor (hash< auto > oh) |
| Constructor.
|
|
| constructor (ObjectBase other) |
| copy constructor
|
|
| initialize (hash< auto > oh) |
| Initialize.
|
|
|
AbstractParameterObject | body |
| The body parameter, if defined.
|
|
hash< string, bool > | consumes |
| A list of MIME types (strings) the operation can consume.
|
|
bool | deprec = False |
| Declares this operation to be deprecated.
|
|
*string | desc |
| A verbose explanation of the operation behavior. GFM syntax can be used for rich text representation.
|
|
*ExternalDocumentationObject | externalDocs |
| Additional external documentation for this operation.
|
|
hash< string, AbstractParameterObject > | formData |
| formData parameter; if defined for this operation, body parameter will be excluded
|
|
string | method |
| the HTTP method for the operation
|
|
*string | operationId |
| Unique string used to identify the operation.
|
|
string | path |
| the URI path for the operation
|
|
hash< string, bool > | produces |
| A hash of MIME types (strings) the operation can produce.
|
|
ResponsesObject | responses |
| Required. The list of possible responses as they are returned from executing this operation.
|
|
list< string > | schemes |
| The transfer protocol for the operation.
|
|
list< hash< string, list< string > > > | security |
| A declaration of which security schemes are applied for this operation.
|
|
*string | summary |
| A short summary of what the operation does.
|
|
list | tags |
| A list of tags (strings or TagObjects) for API documentation control.
|
|
string | query_obj |
| Any query param with type "object"? (OpenAPI 3 compatible)
|
|
hash< auto > | vendorExtensions |
| Allows extensions to the Swagger Schema.
|
|
|
| checkMissingParams (hash< UriQueryInfo > h, *hash< auto > headers, auto body, hash< string, AbstractParameterObject > parameters, *hash< string, AbstractParameterObject > child_params) |
| checks for missing params
|
|
| doDefaultParams (reference< hash< UriQueryInfo > > h, reference< hash > headers, reference< auto > body, hash< string, AbstractParameterObject > parameters, *hash< string, AbstractParameterObject > child_params) |
| add default parameters
|
|
| error (string err, string fmt,...) |
| raises an exception with context information
|
|
*ResponseObject | getResponse (int code) |
| returns the ResponseObject for hthe given HTTP code or NOTHING if none is configured
|
|
Describes a single API operation on a path.
list<hash<string, list<string> > > Swagger::OperationObject::security |
A declaration of which security schemes are applied for this operation.
The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). This definition overrides any declared top-level security. To remove a top-level security declaration, an empty array can be used.
Individual values are hashes in the form of Security Requirement Objects. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#securityRequirementObject. That is, the hash keys MUST correspond to security schemes declared in the Security Definitions, while the values are lists of scope names (strings) required for the execution.