Table of Contents

Class FeatureDiscoveryController

Namespace
MRX.FeatureDiscovery.Controllers
Assembly
MRX.FeatureDiscovery.dll

Exposes an endpoint that reports which MRX features are enabled for a given request path and method.

[ApiController]
public class FeatureDiscoveryController : ControllerBase
Inheritance
FeatureDiscoveryController
Inherited Members

Constructors

FeatureDiscoveryController(RouteProbe)

Exposes an endpoint that reports which MRX features are enabled for a given request path and method.

public FeatureDiscoveryController(RouteProbe routeProbe)

Parameters

routeProbe RouteProbe

Used to resolve the route endpoint matching a probed path and method.

Methods

DiscoverEndpointFeatures(string, string)

Resolves the route matching path and method and returns the MRX features enabled for it.

[HttpOptions("{*path}")]
[EndpointSummary("Discover endpoint features")]
[EndpointDescription("Returns MRX features enabled for the endpoint hosted at the request path.")]
[ProducesResponseType<FeatureDiscoveryResponse>(200)]
[ProducesResponseType(typeof(void), 404)]
public IActionResult DiscoverEndpointFeatures(string path, string method)

Parameters

path string

The request path of the endpoint being probed.

method string

An HTTP method supported by the endpoint being probed.

Returns

IActionResult

A 200 OK response containing the FeatureDiscoveryResponse for the matched endpoint, or a 404 Not Found response if no endpoint matches.