From b52beac528c21557675b6419f60173b438fabd00 Mon Sep 17 00:00:00 2001 From: v-gkuber <138763846+v-gkuber@users.noreply.github.com> Date: Tue, 5 Nov 2024 21:22:24 +0530 Subject: [PATCH] Fixed 502 bad gateway issue (#255) * 502 Issue Fixed * Fixed issue : https://github.com/Azure-Samples/azure-health-data-and-ai-samples/issues/251 Corrected Broken Postman Collection Link --------- Co-authored-by: Rakshit Shinde Co-authored-by: Ganesh Kuber --- ..._collection.json => FHIR-Collection.postman_collection.json} | 0 samples/sample-postman-queries/README.md | 2 +- .../Filters/AppConsentInfoInputFilter.cs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename samples/sample-postman-queries/{FHIR Collection.postman_collection.json => FHIR-Collection.postman_collection.json} (100%) diff --git a/samples/sample-postman-queries/FHIR Collection.postman_collection.json b/samples/sample-postman-queries/FHIR-Collection.postman_collection.json similarity index 100% rename from samples/sample-postman-queries/FHIR Collection.postman_collection.json rename to samples/sample-postman-queries/FHIR-Collection.postman_collection.json diff --git a/samples/sample-postman-queries/README.md b/samples/sample-postman-queries/README.md index 10a3fc2f..6ce752eb 100644 --- a/samples/sample-postman-queries/README.md +++ b/samples/sample-postman-queries/README.md @@ -150,7 +150,7 @@ This section shows the steps to assign **FHIR Data Contruibutor** role to a regi 1. Access the Postman environment template for FHIR service [here](./fhir-service.postman_environment.json). Save the file locally (click on **Raw** and then do a **Save as** from your browser). -2. Now, access the ```FHIR Collection.postman-collection.json``` file available in this repo [here](./FHIR-Collection.postman_collection.json) and save the file locally. +2. Now, access the ```FHIR-Collection.postman-collection.json``` file available in this repo [here](./FHIR-Collection.postman_collection.json) and save the file locally. ### Create a workspace, Import collection and environment diff --git a/samples/smartonfhir/src/SMARTCustomOperations.AzureAuth/Filters/AppConsentInfoInputFilter.cs b/samples/smartonfhir/src/SMARTCustomOperations.AzureAuth/Filters/AppConsentInfoInputFilter.cs index 7ab572d8..c5f432e2 100644 --- a/samples/smartonfhir/src/SMARTCustomOperations.AzureAuth/Filters/AppConsentInfoInputFilter.cs +++ b/samples/smartonfhir/src/SMARTCustomOperations.AzureAuth/Filters/AppConsentInfoInputFilter.cs @@ -128,7 +128,7 @@ public async Task ExecuteAsync(OperationContext context) try { await _graphContextService.PersistAppConsentScopeIfRemoval(appConsentInfo, userId); - context.StatusCode = HttpStatusCode.NoContent; + context.StatusCode = HttpStatusCode.OK; return context; } catch (Microsoft.Graph.ServiceException ex)