Qore SwaggerDataProvider Module Reference  1.2.2
SwaggerDataProvider::SwaggerDataProviderBase Class Reference

The Swagger data provider base class. More...

Inheritance diagram for SwaggerDataProvider::SwaggerDataProviderBase:
<
50 
53 
55  constructor(*hash<auto> options);
56 
57 
60 
61 
63  string getName();
64 
65 
67 
72 protected:
73  auto doRequestImpl(auto req, *hash<auto> request_options);
74 public:
75 
76 
78 
80 protected:
81  *AbstractDataProviderType getRequestTypeImpl();
82 public:
83 
84 
86 
88 protected:
89  *AbstractDataProviderType getResponseTypeImpl();
90 public:
91 
92 
94  hash<DataProviderInfo> getStaticInfoImpl();
95 
96 };
97 };
Data type for REST call requests.
Definition: RestClientCallRequestDataType.qc.dox.h:27
Data type for REST call responses.
Definition: RestClientCallResponseDataType.qc.dox.h:27
const ConstructorOptions
Constructor arguments.
Definition: RestClientDataProvider.qc.dox.h:39
The REST client POST data provider class.
Definition: RestClientPostDataProvider.qc.dox.h:28
RestClient rest
REST client connection.
Definition: RestClientPostDataProvider.qc.dox.h:32
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
const ProviderSummaryInfo
Provider summary info.
Definition: RestClientPostDataProvider.qc.dox.h:44
auto doRequestImpl(auto req, *hash< auto > request_options)
Makes a request and returns the response.
const ResponseType
Response type.
Definition: RestClientPostDataProvider.qc.dox.h:52
constructor(*hash< auto > options)
Creates the object from constructor options.
string getName()
Returns the data provider name.
const ProviderInfo
Provider info.
Definition: RestClientPostDataProvider.qc.dox.h:35
*AbstractDataProviderType getResponseTypeImpl()
Returns the description of a response message, if this object represents a response message.
const RequestType
Request type.
Definition: RestClientPostDataProvider.qc.dox.h:49
*AbstractDataProviderType getRequestTypeImpl()
Returns the description of a successful request message, if any.
constructor(RestClient rest)
Creates the object from a REST connection.
const True
Qore RestClientDataProvider module definition.
Definition: RestClientCallDataProvider.qc.dox.h:26

Public Member Functions

private addFieldsFromParameters (HashDataType rv, hash< string, AbstractParameterObject > parameters, reference< bool > required)
 Returns a field definition from Swagger parameters.
 
private AbstractDataField getFieldFromParameter (string path, string name, string type, *string format, *SchemaObject arrayItems, *string desc, bool required, *list< auto > allowed_values)
 Returns a field from a Swagger parameter.
 
private AbstractDataField