 |
Qore SwaggerDataProvider Module Reference
1.0.2
|
79 *hash<string, AbstractDataField> getRecordTypeIntern();
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
*hash< string, AbstractDataProviderType > getErrorResponseTypesImpl()
Returns a hash of error responses, if any.
*RestClient rest
The REST client object for API calls.
Definition: SwaggerRequestDataProvider.qc.dox.h:41
*hash< string, AbstractDataField > getRecordTypeImpl(*hash< auto > search_options)
Returns the description of the record type, if any.
The Swagger data provider base class.
Definition: SwaggerDataProviderBase.qc.dox.h:34
string uri_path
The current URI path.
Definition: SwaggerRequestDataProvider.qc.dox.h:44
*hash< string, AbstractDataField > record_type
If the request supports a list of hashes in the response and therefore the record API.
Definition: SwaggerRequestDataProvider.qc.dox.h:56
RestClient getRestClient()
Returns a REST client for HTTP operations.
hash< auto > doRequestIntern(auto req, *hash< auto > options)
Makes a REST request and returns the response.
string success_response
The success response code, if any.
Definition: SwaggerRequestDataProvider.qc.dox.h:53
OperationObject op
The operation object.
Definition: SwaggerRequestDataProvider.qc.dox.h:50
string getUriValue(auto v)
Returns the value for the given query argument.
string getUriPath()
Returns the URI path to use in requests.
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returned the response.
The Swagger data provider class.
Definition: SwaggerRequestDataProvider.qc.dox.h:34
Qore SwaggerDataProvider module definition.
Definition: SwaggerDataProvider.qc.dox.h:32
constructor(SwaggerSchema schema, *RestClient rest, string uri_path, OperationObject op)
Creates the object from the arguments.
hash< DataProviderInfo > getInfo()
Returns data provider info.
bool resolve_uri
The URI needs dynamic resolution.
Definition: SwaggerRequestDataProvider.qc.dox.h:47
AbstractDataProviderRecordIterator requestSearchRecordsImpl(auto req, *hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
AbstractDataProviderType getErrorResponseTypeImpl(string error_code)
Returns the type for the given error code.
*AbstractDataProviderType getResponseTypeImpl()
Returns the description of a successful response message, if any.
*AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
AbstractDataProviderType getResponseTypeIntern(ResponseObject response, string label)
Returns a data provider type object for a Swagger response.
SwaggerSchema schema
The Swagger schema.
Definition: SwaggerRequestDataProvider.qc.dox.h:38
*ResponseObject getSuccessResponse()
Returns the schema for the first successful response message found.
string getName()
Returns the data provider name.