app/controllers/static_page_controller.rb
# Gets the data of a widget
# GET widget_data
Gets the data of a widget
GET widget_data
Gets the data of a widget GET widget_data
def widget_data
    widget = WidgetService.widget(params[:widget_id])
    render json: {
      id: widget.id,
      dataset: widget.dataset,
      visualization: widget.widget_config,
      name: widget.name,
      description: widget.description,
      metadata: widget.metadata
    }
  end
def widget_data widget = WidgetService . widget ( params [ :widget_id ] ) render json : { id : widget . id , dataset : widget . dataset , visualization : widget . widget_config , name : widget . name , description : widget . description , metadata : widget . metadata } end
Gets the data of a widget
GET widget_data
Gets the data of a widget GET widget_data