 |
Qore SwaggerDataProvider Module Reference
1.0.2
|
44 string uri_path =
"/";
47 const ProviderInfo = <DataProviderInfo>{
48 "type":
"SwaggerDataProvider",
49 "supports_read":
False,
50 "supports_create":
False,
51 "supports_update":
False,
52 "supports_upsert":
False,
53 "supports_delete":
False,
54 "supports_native_search":
False,
55 "supports_bulk_create":
False,
56 "supports_bulk_upsert":
False,
57 "supports_children":
True,
58 "constructor_options": ConstructorOptions,
62 "transaction_management":
False,
66 const ConstructorOptions = {
67 "schema": <DataProviderOptionInfo>{
69 AbstractDataProviderType::get(StringType),
70 AbstractDataProviderType::get(
new Type(
"SwaggerSchema")),
72 "desc":
"the Swagger schema object or source URL",
75 "restclient": <DataProviderOptionInfo>{
76 "type": AbstractDataProviderType::get(
new Type(
"RestClient")),
77 "desc":
"the RestClient object",
79 "url": <DataProviderOptionInfo>{
80 "type": AbstractDataProviderType::get(StringType),
81 "desc":
"the URL to the REST server; overrides any URL in the schema or in any RestClient object "
82 "passed as an option",
84 "restclient_options": <DataProviderOptionInfo>{
85 "type": AbstractDataProviderType::get(AutoHashType),
86 "desc":
"options to the RestClient constructor; only used if a RestClient object is created for a "
hash< auto > path_tree
hash of valid paths
Definition: SwaggerDataProvider.qc.dox.h:102
checkRestClient(RestClient rest)
Checks the REST client.
SwaggerSchema schema
The Swagger schema.
Definition: SwaggerDataProvider.qc.dox.h:38
*AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
AbstractDataProvider getChildIntern(string name, *string real_name)
Returns the child provider for the given path component.
constructor(*hash< auto > options)
Creates the object from constructor options.
Qore SwaggerDataProvider module definition.
Definition: SwaggerDataProvider.qc.dox.h:32
constructor(SwaggerSchema schema, *RestClient rest)
Creates the object from the arguments.
constructor(hash< auto > path_tree, string uri_path, SwaggerSchema schema, *RestClient rest)
Private constructor; used when traversing the tree.
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
string getName()
Returns the data provider name.
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
*RestClient rest
The REST client object for API calls.
Definition: SwaggerDataProvider.qc.dox.h:41