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.
brapi_module.h File Reference
#include "jansson.h"
#include "httpd.h"
#include "parameter_set.h"
#include "apr_hash.h"
#include "ap_config.h"
#include "ap_provider.h"
#include "http_core.h"
#include "http_config.h"
#include "http_log.h"
#include "http_protocol.h"
#include "http_request.h"
Include dependency graph for brapi_module.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ModBrapiConfig
 The configuration for the Grassroots BrAPI module. More...
 

Enumerations

enum  APIStatus { AS_IGNORED, AS_FAILED, AS_SUCCEEDED }
 

Functions

json_t * GetGrassrootsRequest (ParameterSet *params_p)
 Create the request object to send to the Grassroots. More...
 
json_t * CreateResponseJSONForResult (json_t *payload_array_p, const size_t current_page, const size_t page_size, const size_t total_count, const size_t total_pages)
 
APIStatus DoGrassrootsCall (request_rec *req_p, ParameterSet *params_p, json_t *(*convert_grassroots_to_brapi_fn)(const json_t *grassroots_result_p, request_rec *req_p, ModBrapiConfig *config_p))
 
char * GetObjectIdString (const json_t *const grassroots_json_p)
 
const char * GetParameterValue (apr_table_t *params_p, const char *const param_s, apr_pool_t *pool_p)
 
bool CopyJSONStringValue (const json_t *src_p, const char *src_key_s, json_t *dest_p, const char *dest_key_s)
 
void GetSortSearchParameters (apr_table_t *params_p, const char **sort_by_ss, const char **sort_order_ss, apr_pool_t *pool_p)
 

Enumeration Type Documentation

◆ APIStatus

enum APIStatus
Enumerator
AS_IGNORED 
AS_FAILED 
AS_SUCCEEDED 

Function Documentation

◆ GetGrassrootsRequest()

json_t* GetGrassrootsRequest ( ParameterSet params_p)

Create the request object to send to the Grassroots.

◆ CreateResponseJSONForResult()

json_t* CreateResponseJSONForResult ( json_t *  payload_array_p,
const size_t  current_page,
const size_t  page_size,
const size_t  total_count,
const size_t  total_pages 
)

◆ DoGrassrootsCall()

APIStatus DoGrassrootsCall ( request_rec *  req_p,
ParameterSet params_p,
json_t *(*)(const json_t *grassroots_result_p, request_rec *req_p, ModBrapiConfig *config_p)  convert_grassroots_to_brapi_fn 
)

◆ GetObjectIdString()

char* GetObjectIdString ( const json_t *const  grassroots_json_p)

◆ GetParameterValue()

const char* GetParameterValue ( apr_table_t *  params_p,
const char *const  param_s,
apr_pool_t *  pool_p 
)

◆ CopyJSONStringValue()

bool CopyJSONStringValue ( const json_t *  src_p,
const char *  src_key_s,
json_t *  dest_p,
const char *  dest_key_s 
)

◆ GetSortSearchParameters()

void GetSortSearchParameters ( apr_table_t *  params_p,
const char **  sort_by_ss,
const char **  sort_order_ss,
apr_pool_t *  pool_p 
)