Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
Go to the documentation of this file.
28 #ifndef WEB_SERVICE_UTIL_H_
29 #define WEB_SERVICE_UTIL_H_
const char * wsd_info_uri_s
The uri for more information about this WebService.
Definition: web_service_util.h:120
const char * wsd_base_uri_s
The uri that the WebService will submit its query to.
Definition: web_service_util.h:129
json_t * wsd_config_p
The configuration from the reference service.
Definition: web_service_util.h:108
The number of SubmissionMethods.
Definition: web_service_util.h:86
bool AddParametersToPostWebService(WebServiceData *data_p, ParameterSet *param_set_p)
Add parameters to the HTTP POST request used by the given WebServiceData.
#define GRASSROOTS_SERVICE_API
Definition: grassroots_service_library.h:49
const char * wsd_alias_s
The alias of the WebService.
Definition: web_service_util.h:117
SubmissionMethod
An enumeration of the different web-based submission methods.
Definition: web_service_util.h:68
bool AddParametersToBodyWebService(WebServiceData *data_p, ParameterSet *param_set_p)
Add parameters to an HTTP POST request with a JSON fragment in its body used by the given WebServiceD...
Treat the parameters as a set of options to be OR'ed together.
Definition: web_service_util.h:55
MatchType
An enumeration detailing how to combine different parameters upon submission to a web service.
Definition: web_service_util.h:46
MatchType GetMatchTypeParameterValue(ParameterSet *const param_set_p)
Get the value of the MatchType parameter from a ParameterSet.
An HTTP POST request.
Definition: web_service_util.h:74
bool AddParametersToGetWebService(WebServiceData *data_p, ParameterSet *param_set_p)
Add parameters to the HTTP GET request used by the given WebServiceData.
ParameterSet * wsd_params_p
The ParameterSet for this WebService.
Definition: web_service_util.h:123
The configuration data for a WebService.
Definition: web_service_util.h:100
SubmissionMethod wsd_method
The SubmissionMethod to use to submit the query.
Definition: web_service_util.h:132
An HTTP GET request.
Definition: web_service_util.h:77
ByteBuffer * wsd_buffer_p
This is used to store the data when building the submission uri.
Definition: web_service_util.h:126
The number of MatchTypes.
Definition: web_service_util.h:58
bool InitWebServiceData(WebServiceData *const data_p, json_t *op_json_p)
Initialise a WebServiceData.
const char * wsd_name_s
The name of the WebService.
Definition: web_service_util.h:111
An invalid SubmissionMethod.
Definition: web_service_util.h:71
The user requires an exact match of the parameter values.
Definition: web_service_util.h:49
The user wants the parameters AND'ed together.
Definition: web_service_util.h:52
void ClearWebServiceData(WebServiceData *const data_p)
Clear a WebServiceData and free any associated memory.
An HTTP POST request where the body of the request uses JSON.
Definition: web_service_util.h:83
A datatype to allow an automatically growing buffer for appending data to.
Definition: byte_buffer.h:35
bool CallCurlWebservice(WebServiceData *data_p)
Make the request to the web service uri and store the response.
CurlTool * wsd_curl_data_p
The CurlTool used to send the request and receive the results.
Definition: web_service_util.h:135
A datatype for holding the configuration data for a Service.
Definition: service.h:126
const char * wsd_description_s
The description of the WebService.
Definition: web_service_util.h:114
ServiceData wsd_base_data
The base ServiceData.
Definition: web_service_util.h:103
SubmissionMethod GetSubmissionMethod(const json_t *op_json_p)
Get the requested SubmissionMethod from a reference service.
A set of Parameters along with an optional name and description.
Definition: parameter_set.h:46
bool AddMatchTypeParameter(WebServiceData *data_p, ParameterSet *param_set_p)
Add a Parameter giving the choice of MatchTypes to a ParameterSet.