From 392f27a31d48c0b45782176cda3c3ba65f3fea07 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Fri, 14 Jul 2023 09:23:53 -0400 Subject: [PATCH] Fix http file --- IdentityEndpointsSample/app.http | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/IdentityEndpointsSample/app.http b/IdentityEndpointsSample/app.http index 059a06a..3a4378a 100644 --- a/IdentityEndpointsSample/app.http +++ b/IdentityEndpointsSample/app.http @@ -1,29 +1,30 @@ # For more info on HTTP files go to https://aka.ms/vs/httpfile +@url=https://localhost:7044 @user=admin @password=P@$$w0rd1 -POST https://localhost:7044/register +POST {{url}}/register Content-Type: application/json { - "username": {{user}}, - "password": {{password}} + "username": "{{user}}", + "password": "{{password}}" } ### -POST https://localhost:7044/login +POST {{url}}/login Content-Type: application/json { - "username": {{user}}, - "password": {{password}} + "username": "{{user}}", + "password": "{{password}}" } ### -@token = +@token= -GET https://localhost:7044/ +GET {{url}} Authorization: Bearer {{token}} \ No newline at end of file