diff --git a/src/Web/Web-webapi.http b/src/Web/Web-webapi.http index f06f8f1a6..e6fb10631 100644 --- a/src/Web/Web-webapi.http +++ b/src/Web/Web-webapi.http @@ -4,24 +4,25 @@ @Username=administrator@localhost @Password=Administrator1! @BearerToken= +@RefreshToken= # POST Users Register -POST {{Web_HostAddress}}/api/Users/Register +POST {{Web_HostAddress}}/api/Users/register Content-Type: application/json { - "username": "{{Username}}", + "email": "{{Username}}", "password": "{{Password}}" } ### # POST Users Login -POST {{Web_HostAddress}}/api/Users/Login +POST {{Web_HostAddress}}/api/Users/login Content-Type: application/json { - "username": "{{Username}}", + "email": "{{Username}}", "password": "{{Password}}" } @@ -33,7 +34,7 @@ Authorization: Bearer {{BearerToken}} Content-Type: application/json { - "refreshToken": "" + "refreshToken": "{{RefreshToken}}" } ### @@ -75,17 +76,10 @@ Content-Type: application/json ### -# DELETE TodoLists -DELETE {{Web_HostAddress}}/api/TodoLists/1 -Authorization: Bearer {{BearerToken}} - -### - # GET TodoItems @PageNumber = 1 @PageSize = 10 GET {{Web_HostAddress}}/api/TodoItems?ListId=1&PageNumber={{PageNumber}}&PageSize={{PageSize}} - Authorization: Bearer {{BearerToken}} ### @@ -96,7 +90,7 @@ Authorization: Bearer {{BearerToken}} Content-Type: application/json // CreateTodoItemCommand -{ +{ "ListId": 1, "Title": "Eat a burrito 🌯" } @@ -104,7 +98,7 @@ Content-Type: application/json ### #PUT TodoItems UpdateItemDetails -PUT {{Web_HostAddress}}/api/TodoItems/UpdateItemDetails?Id=1 +PUT {{Web_HostAddress}}/api/TodoItems/UpdateDetail/1 Authorization: Bearer {{BearerToken}} Content-Type: application/json @@ -136,4 +130,10 @@ Content-Type: application/json DELETE {{Web_HostAddress}}/api/TodoItems/1 Authorization: Bearer {{BearerToken}} +### + +# DELETE TodoLists +DELETE {{Web_HostAddress}}/api/TodoLists/1 +Authorization: Bearer {{BearerToken}} + ### \ No newline at end of file