-
Notifications
You must be signed in to change notification settings - Fork 3
Utils
Xavier Sosnovsky edited this page Aug 8, 2022
·
4 revisions
The various versions of the SDMX API.
var ApiVersion = require("sdmx-rest").utils.ApiVersion;
var service = sdmxrest.getService({
url: "http://ws-entry-point/",
api: ApiVersion.v1_0_1,
});
If you prefer, you can pass the desired version directly:
var ApiVersion = require("sdmx-rest").utils.ApiVersion;
var service = sdmxrest.getService({
url: "http://ws-entry-point/",
api: "v1.0.1",
});
The lists of valid resources for each version of the SDMX API.
var ApiResources = require("sdmx-rest").utils.ApiResources;
var resources = ApiResources.v1_0_1;
Various regular expressions defined in the SDMX API. They can be useful in case you need to validate some SDMX resources.
var SdmxPatterns = require("sdmx-rest").utils.SdmxPatterns;
var id = "CL_FREQ";
console.log(SdmxPatterns.NCNameIDType.exec(id));