HTTP request JSON reply model Run Slicer server Provide desired output 1 3 2 Query server from JavaScript GET /cubes ! GET /cube/{CUBE}/model ! GET /cube/{CUBE}/aggregate?… > slicer serve slicer.ini
Application PHP, RoR, Django HTTP request JSON reply model HTML GET /cube/{CUBE}/aggregate?… Run a Slicer server instance Provide desired output 1 3 4 Query with HTTP requests 2 Get the model using HTTP GET /cubes ! GET /cube/{CUBE}/model
browser = workspace.browser(…) result = browser.aggregate(…) Public store JSON reply Cubes Python API Django, Flask, … HTML model Python Web App handles the request Python Web App provides output 1 2 3 Application uses the Cubes directly:
model from flask import Flask from cubes.server import slicer ! app = Flask(__name__) ! app.register_blueprint(slicer, url_prefix=“/slicer", config="slicer.ini") Register Slicer as part of Flask app Provide Slicer API as additional “raw analytical data” API do whatever you want in Flask 1 2