It is possible to plug-in cubes from other slicer servers using the Slicer Server backend.
Note
If the server has a JSON record limit set, then the backend will receive only limited number of facts.
Type is slicer
Example:
[datastore]
type: slicer
url: http://slicer.databrewery.org/webshop-example
For more than one slicer define one datastore per source Slicer server.
Slicer backend generates the model on-the-fly from the source server. You have to specify that the provider is slicer:
{
"provider": "slicer"
}
For more than one slicer, create one file per source Slicer server and specify the data store:
{
"provider": "slicer",
"datastore": "slicer_2"
}
Create a model.json:
{
"provider": "slicer"
}
Create a slicer.ini:
[workspace]
model: slicer_model.json
[datastore]
type: slicer
url: http://slicer.databrewery.org/webshop-example
[server]
prettyprint: true
Run the server:
slicer serve slicer.ini
Get a list of cubes:
curl "http://localhost:5000/cubes"