@Path(value="/apis/widgets") public class WidgetRestApi extends Object implements org.wso2.msf4j.Microservice
| Constructor and Description |
|---|
WidgetRestApi() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.framework.BundleContext bundleContext) |
protected void |
deactivate(org.osgi.framework.BundleContext bundleContext) |
javax.ws.rs.core.Response |
getThumbnail(String widgetId)
This method provides thumbnail of given widget.
|
javax.ws.rs.core.Response |
getWidgetConf(String widgetId)
This method return the configuration of given widget.
|
javax.ws.rs.core.Response |
getWidgetsMetaInfo()
Returns a list of widget configurations.
|
protected void |
setWidgetInfoProvider(org.wso2.carbon.dashboards.core.WidgetInfoProvider widgetInfoProvider) |
protected void |
unsetWidgetInfoProvider(org.wso2.carbon.dashboards.core.WidgetInfoProvider widgetInfoProvider) |
protected void activate(org.osgi.framework.BundleContext bundleContext)
protected void deactivate(org.osgi.framework.BundleContext bundleContext)
protected void setWidgetInfoProvider(org.wso2.carbon.dashboards.core.WidgetInfoProvider widgetInfoProvider)
protected void unsetWidgetInfoProvider(org.wso2.carbon.dashboards.core.WidgetInfoProvider widgetInfoProvider)
@GET @Path(value="/") @Produces(value="application/json") public javax.ws.rs.core.Response getWidgetsMetaInfo()
@GET
@Path(value="/{id}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getWidgetConf(@PathParam(value="id")
String widgetId)
widgetId - widget id@GET
@Path(value="/{id}/thumbnail")
public javax.ws.rs.core.Response getThumbnail(@PathParam(value="id")
String widgetId)
widgetId - widget idCopyright © 2017 WSO2. All rights reserved.