From 6691fa6084e862e2d115bb248c41a8891a064abf Mon Sep 17 00:00:00 2001 From: Paul Taladay Date: Fri, 4 Aug 2023 16:24:27 -0700 Subject: [PATCH] Fixed a bug introduced from capability statement changes for adding in $status. (#3469) --- src/Microsoft.Health.Fhir.Api/Features/Routing/KnownRoutes.cs | 1 + .../Controllers/OperationDefinitionController.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.Health.Fhir.Api/Features/Routing/KnownRoutes.cs b/src/Microsoft.Health.Fhir.Api/Features/Routing/KnownRoutes.cs index 04eab9cbac..d18411dfe0 100644 --- a/src/Microsoft.Health.Fhir.Api/Features/Routing/KnownRoutes.cs +++ b/src/Microsoft.Health.Fhir.Api/Features/Routing/KnownRoutes.cs @@ -81,6 +81,7 @@ internal class KnownRoutes public const string SearchParameters = "SearchParameter/"; public const string Status = "$status"; public const string SearchParametersStatusQuery = SearchParameters + Status; + public const string SearchParametersStatusQueryDefintion = OperationDefinition + "/" + OperationsConstants.SearchParameterStatus; public const string SearchParametersStatusById = SearchParameters + IdRouteSegment + "/" + Status; public const string SearchParametersStatusPostQuery = SearchParametersStatusQuery + "/" + Search; } diff --git a/src/Microsoft.Health.Fhir.Shared.Api/Controllers/OperationDefinitionController.cs b/src/Microsoft.Health.Fhir.Shared.Api/Controllers/OperationDefinitionController.cs index d4acc21858..aa44f5acd8 100644 --- a/src/Microsoft.Health.Fhir.Shared.Api/Controllers/OperationDefinitionController.cs +++ b/src/Microsoft.Health.Fhir.Shared.Api/Controllers/OperationDefinitionController.cs @@ -125,7 +125,7 @@ public async Task PurgeHistoryOperationDefinition() } [HttpGet] - [Route(KnownRoutes.SearchParametersStatusQuery, Name = RouteNames.SearchParameterStatusOperationDefinition)] + [Route(KnownRoutes.SearchParametersStatusQueryDefintion, Name = RouteNames.SearchParameterStatusOperationDefinition)] [AllowAnonymous] public async Task SearchParameterStatusOperationDefintion() {