protected override void SubscribeCore(IHttpService service, HttpMessagePipe pipe) { _singleNodeWeb.RegisterControllerActions(service); _commonWeb.RegisterControllerActions(service); RegisterRedirectAction(service, "", "/web/home.htm"); RegisterRedirectAction(service, "/web", "/web/home.htm"); RegisterRedirectAction(service, "/web/projections", "/web/projections.htm"); }
protected override void SubscribeCore(IHttpService service) { _clusterNodeWeb.RegisterControllerActions(service); RegisterRedirectAction(service, "", "/web/index.html"); RegisterRedirectAction(service, "/web", "/web/index.html"); service.RegisterAction( new ControllerAction("/sys/subsystems", HttpMethod.Get, Codec.NoCodecs, new ICodec[] { Codec.Json }, AuthorizationLevel.Ops), OnListNodeSubsystems); }
protected override void SubscribeCore(IHttpService service) { _clusterNodeWeb.RegisterControllerActions(service); _commonWeb.RegisterControllerActions(service); RegisterRedirectAction(service, "", "/web/home.htm"); RegisterRedirectAction(service, "/web", "/web/home.htm"); service.RegisterAction( new ControllerAction("/sys/subsystems", HttpMethod.Get, Codec.NoCodecs, new ICodec[] { Codec.Json }), OnListNodeSubsystems); }
protected override void SubscribeCore(IHttpService service) { _clusterNodeJs.RegisterControllerActions(service); _miniWebPrelude.RegisterControllerActions(service); _miniWebResources.RegisterControllerActions(service); HttpHelpers.RegisterRedirectAction(service, "/web/projections", "/web/projections.htm"); Register(service, "/projections", HttpMethod.Get, OnProjections, Codec.NoCodecs, new ICodec[] { Codec.ManualEncoding }); Register(service, "/projections/any", HttpMethod.Get, OnProjectionsGetAny, Codec.NoCodecs, SupportedCodecs); Register(service, "/projections/all-non-transient", HttpMethod.Get, OnProjectionsGetAllNonTransient, Codec.NoCodecs, SupportedCodecs); Register(service, "/projections/transient", HttpMethod.Get, OnProjectionsGetTransient, Codec.NoCodecs, SupportedCodecs); Register(service, "/projections/onetime", HttpMethod.Get, OnProjectionsGetOneTime, Codec.NoCodecs, SupportedCodecs); Register(service, "/projections/continuous", HttpMethod.Get, OnProjectionsGetContinuous, Codec.NoCodecs, SupportedCodecs); Register(service, "/projections/transient?name={name}&type={type}&enabled={enabled}", HttpMethod.Post, OnProjectionsPostTransient, new ICodec[] { Codec.ManualEncoding }, SupportedCodecs); Register(service, "/projections/onetime?name={name}&type={type}&enabled={enabled}&checkpoints={checkpoints}&emit={emit}", HttpMethod.Post, OnProjectionsPostOneTime, new ICodec[] { Codec.ManualEncoding }, SupportedCodecs); Register(service, "/projections/continuous?name={name}&type={type}&enabled={enabled}&emit={emit}", HttpMethod.Post, OnProjectionsPostContinuous, new ICodec[] { Codec.ManualEncoding }, SupportedCodecs); Register(service, "/projection/{name}/query?config={config}", HttpMethod.Get, OnProjectionQueryGet, Codec.NoCodecs, new ICodec[] { Codec.ManualEncoding }); Register(service, "/projection/{name}/query?type={type}&emit={emit}", HttpMethod.Put, OnProjectionQueryPut, new ICodec[] { Codec.ManualEncoding }, SupportedCodecs); Register(service, "/projection/{name}", HttpMethod.Get, OnProjectionStatusGet, Codec.NoCodecs, SupportedCodecs); Register(service, "/projection/{name}?deleteStateStream={deleteStateStream}&deleteCheckpointStream={deleteCheckpointStream}", HttpMethod.Delete, OnProjectionDelete, Codec.NoCodecs, SupportedCodecs); Register(service, "/projection/{name}/statistics", HttpMethod.Get, OnProjectionStatisticsGet, Codec.NoCodecs, SupportedCodecs); Register(service, "/projections/read-events", HttpMethod.Post, OnProjectionsReadEvents, SupportedCodecs, SupportedCodecs); Register(service, "/projection/{name}/state?partition={partition}", HttpMethod.Get, OnProjectionStateGet, Codec.NoCodecs, SupportedCodecs); Register(service, "/projection/{name}/result?partition={partition}", HttpMethod.Get, OnProjectionResultGet, Codec.NoCodecs, SupportedCodecs); Register(service, "/projection/{name}/command/disable?enableRunAs={enableRunAs}", HttpMethod.Post, OnProjectionCommandDisable, Codec.NoCodecs, SupportedCodecs); Register(service, "/projection/{name}/command/enable?enableRunAs={enableRunAs}", HttpMethod.Post, OnProjectionCommandEnable, Codec.NoCodecs, SupportedCodecs); Register(service, "/projection/{name}/command/reset?enableRunAs={enableRunAs}", HttpMethod.Post, OnProjectionCommandReset, Codec.NoCodecs, SupportedCodecs); Register(service, "/projection/{name}/command/abort?enableRunAs={enableRunAs}", HttpMethod.Post, OnProjectionCommandAbort, Codec.NoCodecs, SupportedCodecs); }
protected override void SubscribeCore(IHttpService service, HttpMessagePipe pipe) { _miniWebPrelude.RegisterControllerActions(service); service.RegisterControllerAction( new ControllerAction( "/projections", HttpMethod.Get, Codec.NoCodecs, new ICodec[] { Codec.ManualEncoding }, Codec.ManualEncoding), OnProjections); service.RegisterControllerAction( new ControllerAction( "/projections/any", HttpMethod.Get, Codec.NoCodecs, SupportedCodecs, DefaultResponseCodec), OnProjectionsGetAny); service.RegisterControllerAction( new ControllerAction( "/projections/onetime", HttpMethod.Get, Codec.NoCodecs, SupportedCodecs, DefaultResponseCodec), OnProjectionsGetOneTime); service.RegisterControllerAction( new ControllerAction( "/projections/adhoc", HttpMethod.Get, Codec.NoCodecs, SupportedCodecs, DefaultResponseCodec), OnProjectionsGetAdHoc); service.RegisterControllerAction( new ControllerAction( "/projections/continuous", HttpMethod.Get, Codec.NoCodecs, SupportedCodecs, DefaultResponseCodec), OnProjectionsGetContinuous); service.RegisterControllerAction( new ControllerAction( "/projections/persistent", HttpMethod.Get, Codec.NoCodecs, SupportedCodecs, DefaultResponseCodec), OnProjectionsGetPersistent); service.RegisterControllerAction( new ControllerAction( "/projections/onetime?type={type}", HttpMethod.Post, new ICodec[] { Codec.ManualEncoding }, SupportedCodecs, DefaultResponseCodec), OnProjectionsPostAdOneTime); service.RegisterControllerAction( new ControllerAction( "/projections/adhoc?name={name}&type={type}", HttpMethod.Post, new ICodec[] { Codec.ManualEncoding }, SupportedCodecs, DefaultResponseCodec), OnProjectionsPostAdHoc); service.RegisterControllerAction( new ControllerAction( "/projections/continuous?name={name}&type={type}", HttpMethod.Post, new ICodec[] { Codec.ManualEncoding }, SupportedCodecs, DefaultResponseCodec), OnProjectionsPostContinuous); service.RegisterControllerAction( new ControllerAction( "/projections/persistent?name={name}&type={type}", HttpMethod.Post, new ICodec[] { Codec.ManualEncoding }, SupportedCodecs, DefaultResponseCodec), OnProjectionsPostPersistent); service.RegisterControllerAction( new ControllerAction( "/projection/{name}/query", HttpMethod.Get, Codec.NoCodecs, new ICodec[] { Codec.ManualEncoding }, Codec.ManualEncoding), OnProjectionQueryGet); service.RegisterControllerAction( new ControllerAction( "/projection/{name}/query?type={type}", HttpMethod.Put, new ICodec[] { Codec.ManualEncoding }, SupportedCodecs, DefaultResponseCodec), OnProjectionQueryPut); service.RegisterControllerAction( new ControllerAction( "/projection/{name}", HttpMethod.Get, Codec.NoCodecs, SupportedCodecs, DefaultResponseCodec), OnProjectionStatusGet); service.RegisterControllerAction( new ControllerAction( "/projection/{name}", HttpMethod.Delete, new ICodec[] { Codec.ManualEncoding }, SupportedCodecs, DefaultResponseCodec), OnProjectionDelete); service.RegisterControllerAction( new ControllerAction( "/projection/{name}/statistics", HttpMethod.Get, Codec.NoCodecs, SupportedCodecs, DefaultResponseCodec), OnProjectionStatisticsGet); service.RegisterControllerAction( new ControllerAction( "/projection/{name}/state", HttpMethod.Get, Codec.NoCodecs, SupportedCodecs, DefaultResponseCodec), OnProjectionStateGet); service.RegisterControllerAction( new ControllerAction( "/projection/{name}/command/disable", HttpMethod.Post, new ICodec[] { Codec.ManualEncoding }, SupportedCodecs, DefaultResponseCodec), OnProjectionCommandDisable); service.RegisterControllerAction( new ControllerAction( "/projection/{name}/command/enable", HttpMethod.Post, new ICodec[] { Codec.ManualEncoding }, SupportedCodecs, DefaultResponseCodec), OnProjectionCommandEnable); }
protected override void SubscribeCore(IHttpService service, HttpMessagePipe pipe) { _miniWeb.RegisterControllerActions(service); RegisterRedirectAction(service, "", "/web/index.htm"); RegisterRedirectAction(service, "/web/projections", "/web/list-projections.htm"); }
protected override void SubscribeCore(IHttpService service) { _miniWeb.RegisterControllerActions(service); }