SwaggerDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace SwaggerDataProvider {
class SwaggerDataProvider : public AbstractDataProvider {
public:
SwaggerSchema schema;
*RestClient rest;
string uri_path = "/";
const ProviderInfo = ...;
const ConstructorOptions = ...;
const HttpMethods = ...;
protected:
hash<auto> path_tree;
public:
protected:
constructor(hash<auto> path_tree, string uri_path, SwaggerSchema schema, *RestClient rest);
public:
constructor(SwaggerSchema schema, *RestClient rest);
constructor(*hash<auto> options);
string getName();
protected:
checkRestClient(RestClient rest);
public:
protected:
setupTree();
public:
protected:
*list<string> getChildProviderNamesImpl();
public:
protected:
*AbstractDataProvider getChildProviderImpl(string name);
public:
protected:
AbstractDataProvider getChildIntern(string name, *string real_name);
public:
protected:
hash<DataProviderInfo> getStaticInfoImpl();
public:
};
}; // end namespace swagger
SwaggerDataProvider::SwaggerDataProvider::getStaticInfoImpl
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
SwaggerDataProvider::SwaggerDataProvider::getName
string getName()
Returns the data provider name.
SwaggerDataProvider::SwaggerDataProvider::checkRestClient
checkRestClient(RestClient rest)
Checks the REST client.
SwaggerDataProvider::SwaggerDataProvider::schema
SwaggerSchema schema
The Swagger schema.
Definition: SwaggerDataProvider.qc.dox.h:32
SwaggerDataProvider::SwaggerDataProvider::getChildProviderNamesImpl
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
SwaggerDataProvider::SwaggerDataProvider::constructor
constructor(*hash< auto > options)
Creates the object from constructor options.
SwaggerDataProvider::SwaggerDataProvider::getChildIntern
AbstractDataProvider getChildIntern(string name, *string real_name)
Returns the child provider for the given path component.
SwaggerDataProvider::SwaggerDataProvider::constructor
constructor(SwaggerSchema schema, *RestClient rest)
Creates the object from the arguments.
SwaggerDataProvider::SwaggerDataProvider::getChildProviderImpl
*AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
SwaggerDataProvider::SwaggerDataProvider::rest
*RestClient rest
The REST client object for API calls.
Definition: SwaggerDataProvider.qc.dox.h:35
SwaggerDataProvider::SwaggerDataProvider::constructor
constructor(hash< auto > path_tree, string uri_path, SwaggerSchema schema, *RestClient rest)
Private constructor; used when traversing the tree.
SwaggerDataProvider::SwaggerDataProvider::path_tree
hash< auto > path_tree
hash of valid paths
Definition: SwaggerDataProvider.qc.dox.h:54
RestClient
SwaggerDataProvider
Qore SwaggerDataProvider module definition.
Definition: SwaggerDataProvider.qc.dox.h:26