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
routeProbeRouteProbeUsed 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
pathstringThe request path of the endpoint being probed.
methodstringAn 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.