A experimental class to handle a SDMX 2.0 service request builder
SDMXREST20RequestBuilder(regUrl, repoUrl, accessKey = NULL, compliant,
unsupportedResources = list(), skipProviderId = FALSE, forceProviderId = FALSE,
headers = list())
an object of class "character" giving the base Url of the SDMX service registry
an object of class "character" giving the base Url of the SDMX service repository
an object of class "character" indicating the name of request parameter for which an authentication or subscription user key/token has to be provided to perform requests
an object of class "logical" indicating if the web-service is compliant with the SDMX REST web-service specifications
an object of class "list" giving eventual unsupported REST resources. Default is an empty list object
an object of class "logical" indicating that the provider agencyIdshould be skipped. Used to control lack of strong SDMX REST compliance from data providers. For now, it applies only for the "data" resource.
an object of class "logical" indicating if the provider
agencyId has to be added at the end of the request. Default value is
FALSE
. For some providers, the all
value for the provider
agency id is not allowed, in this case, the agencyId
of the data
provider has to be forced in the web-request
an object of class "list" that contains any additional headers for the request.
regUrl
an object of class "character" giving the base Url of the SDMX service registry
repoUrl
an object of class "character" giving the base Url of the SDMX service repository
accessKey
an object of class "character" indicating the name of request parameter for which an authentication or subscription user key/token has to be provided to perform requests
compliant
an object of class "logical" indicating if the web-service is compliant with the SDMX REST web-service specifications
This class is not useful in itself, but all SDMX non-abstract classes will encapsulate it as slot, when parsing an SDMX-ML document.
Emmanuel Blondel, emmanuel.blondel1@gmail.com
#how to create a SDMXREST20RequestBuilder
requestBuilder <- SDMXREST20RequestBuilder(
regUrl = "http://www.myorg/registry",
repoUrl = "http://www.myorg/repository", compliant = FALSE)
Run the code above in your browser using DataLab