Qore SwaggerDataProvider Module Reference  1.2
SwaggerDataProvider.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
28 class SwaggerDataProvider : public AbstractDataProvider {
29 
30 public:
32  SwaggerSchema schema;
33 
36 
38  string uri_path = "/";
39 
41  const ProviderInfo = ...;
42 
43 
45  const ConstructorOptions = ...;
46 
47 
49  const HttpMethods = ...;
50 
51 
52 protected:
54  hash<auto> path_tree;
55 
56 public:
57 
59 protected:
60  constructor(hash<auto> path_tree, string uri_path, SwaggerSchema schema, *RestClient rest);
61 public:
62 
63 
65  constructor(SwaggerSchema schema, *RestClient rest);
66 
67 
69  constructor(*hash<auto> options);
70 
71 
73  string getName();
74 
75 
77  *string getDesc();
78 
79 
81 protected:
83 public:
84 
85 
86 protected:
87  setupTree();
88 public:
89 
90 
92 
94 protected:
95  *list<string> getChildProviderNamesImpl();
96 public:
97 
98 
100 
104 protected:
105  *AbstractDataProvider getChildProviderImpl(string name);
106 public:
107 
108 
110 protected:
111  AbstractDataProvider getChildIntern(string name, *string real_name);
112 public:
113 
114 
116 protected:
117  hash<DataProviderInfo> getStaticInfoImpl();
118 public:
119 
120 
122 protected:
124 public:
125 
126 };
127 }; // end namespace swagger
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
string getName()
Returns the data provider name.
checkRestClient(RestClient rest)
Checks the REST client.
SwaggerSchema schema
The Swagger schema.
Definition: SwaggerDataProvider.qc.dox.h:32
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
constructor(*hash< auto > options)
Creates the object from constructor options.
AbstractDataProvider getChildIntern(string name, *string real_name)
Returns the child provider for the given path component.
constructor(SwaggerSchema schema, *RestClient rest)
Creates the object from the arguments.
object getSchemaObjectImpl()
Returns the schema supporting this data provider.
*AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
*RestClient rest
The REST client object for API calls.
Definition: SwaggerDataProvider.qc.dox.h:35
constructor(hash< auto > path_tree, string uri_path, SwaggerSchema schema, *RestClient rest)
Private constructor; used when traversing the tree.
*string getDesc()
Returns the data provider description.
hash< auto > path_tree
hash of valid paths
Definition: SwaggerDataProvider.qc.dox.h:54
Qore SwaggerDataProvider module definition.
Definition: SwaggerDataProvider.qc.dox.h:26