From 17b261e115f9257d54260e6cb551cbd1c3b3f163 Mon Sep 17 00:00:00 2001 From: Xavier Date: Mon, 20 Nov 2023 10:06:05 -0800 Subject: [PATCH] http file support for Visual Studio. https://devblogs.microsoft.com/visualstudio/safely-use-secrets-in-http-requests-in-visual-studio-2022/ --- BuberDinner.sln | 18 ++++++++++++++++++ Requests/httpenv.json | 5 +++++ 2 files changed, 23 insertions(+) create mode 100644 Requests/httpenv.json diff --git a/BuberDinner.sln b/BuberDinner.sln index 9133a00..ebe270c 100644 --- a/BuberDinner.sln +++ b/BuberDinner.sln @@ -35,6 +35,22 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BuberDinner.Infrastructure" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BuberDinner.Infrastructure.Tests", "Infrastructure\tests\BuberDinner.Infrastructure.Tests.csproj", "{B862E6F8-8D28-41C9-8682-678CC30692ED}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Requests", "Requests", "{0E4C8F09-4F38-4804-8D8A-3E614856A3DD}" + ProjectSection(SolutionItems) = preProject + Requests\httpenv.json = Requests\httpenv.json + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Authentication", "Authentication", "{65EC07A7-FE7E-455A-A498-E58B7B078FFC}" + ProjectSection(SolutionItems) = preProject + Requests\Authentication\Login.http = Requests\Authentication\Login.http + Requests\Authentication\Register.http = Requests\Authentication\Register.http + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Dinners", "Dinners", "{6DD8972D-CE48-4836-BF69-05971E28D5E9}" + ProjectSection(SolutionItems) = preProject + Requests\Dinners\ListDinners.http = Requests\Dinners\ListDinners.http + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -86,6 +102,8 @@ Global {97F300F7-52B2-4F31-89A0-BDBD8A857487} = {8EA76B14-2484-414E-B91A-0DA0071D196F} {F06741C6-2C05-48D7-9A21-6F07328938B1} = {DE739636-E2CB-4361-99A4-AC3BB029CCAF} {B862E6F8-8D28-41C9-8682-678CC30692ED} = {DE739636-E2CB-4361-99A4-AC3BB029CCAF} + {65EC07A7-FE7E-455A-A498-E58B7B078FFC} = {0E4C8F09-4F38-4804-8D8A-3E614856A3DD} + {6DD8972D-CE48-4836-BF69-05971E28D5E9} = {0E4C8F09-4F38-4804-8D8A-3E614856A3DD} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {339F67B3-D073-4BDF-9C41-45665718976B} diff --git a/Requests/httpenv.json b/Requests/httpenv.json new file mode 100644 index 0000000..15f1e03 --- /dev/null +++ b/Requests/httpenv.json @@ -0,0 +1,5 @@ +{ + "dev": { + "host": "https://localhost:7059" + } +} \ No newline at end of file