-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Simplify .http file + add cookie auth + align with endpoints explo…
…rer.
- Loading branch information
1 parent
aaddbca
commit bdb7827
Showing
5 changed files
with
109 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# For more info on HTTP files go to https://aka.ms/vs/httpfile | ||
@WebUI_HostAddress = https://localhost:5001 | ||
@AuthCookieName = .AspNetCore.Identity.Application | ||
@AuthCookieValue = <AuthCookieValue> | ||
|
||
# GET WeatherForecast | ||
GET {{WebUI_HostAddress}}/api/weatherforecast | ||
Cookie: {{AuthCookieName}}={{AuthCookieValue}} | ||
|
||
### | ||
|
||
# GET TodoLists | ||
GET {{WebUI_HostAddress}}/api/TodoLists | ||
Cookie: {{AuthCookieName}}={{AuthCookieValue}} | ||
|
||
### | ||
|
||
#GET TodoList | ||
GET {{WebUI_HostAddress}}/api/TodoLists/1 | ||
Cookie: {{AuthCookieName}}={{AuthCookieValue}} | ||
|
||
### | ||
|
||
# POST TodoLists | ||
POST {{WebUI_HostAddress}}/api/TodoLists | ||
Cookie: {{AuthCookieName}}={{AuthCookieValue}} | ||
Content-Type: application/json | ||
|
||
// CreateTodoListCommand | ||
{ | ||
"Title": "Backlog" | ||
} | ||
|
||
### | ||
|
||
# PUT TodoLists | ||
PUT {{WebUI_HostAddress}}/api/TodoLists/1 | ||
Cookie: {{AuthCookieName}}={{AuthCookieValue}} | ||
Content-Type: application/json | ||
|
||
// UpdateTodoListCommand | ||
{ | ||
"Id": 1, | ||
"Title": "Product Backlog" | ||
} | ||
|
||
### | ||
|
||
# DELETE TodoLists | ||
DELETE {{WebUI_HostAddress}}/api/TodoLists/1 | ||
Cookie: {{AuthCookieName}}={{AuthCookieValue}} | ||
|
||
### | ||
|
||
# GET TodoItems | ||
@PageNumber = 1 | ||
@PageSize = 10 | ||
GET {{WebUI_HostAddress}}/api/TodoItems?ListId=1&PageNumber={{PageNumber}}&PageSize={{PageSize}} | ||
Cookie: {{AuthCookieName}}={{AuthCookieValue}} | ||
|
||
### | ||
|
||
# POST TodoItems | ||
POST {{WebUI_HostAddress}}/api/TodoItems | ||
Cookie: {{AuthCookieName}}={{AuthCookieValue}} | ||
Content-Type: application/json | ||
|
||
// CreateTodoItemCommand | ||
{ | ||
"ListId": 1, | ||
"Title": "Eat a burrito 🌯" | ||
} | ||
|
||
### | ||
|
||
#PUT TodoItems UpdateItemDetails | ||
PUT {{WebUI_HostAddress}}/api/TodoItems/UpdateItemDetails?Id=1 | ||
Cookie: {{AuthCookieName}}={{AuthCookieValue}} | ||
Content-Type: application/json | ||
|
||
// UpdateTodoItemDetailCommand | ||
{ | ||
"Id": 1, | ||
"ListId": 1, | ||
"Priority": 3, | ||
"Note": "This is a good idea!" | ||
} | ||
|
||
### | ||
|
||
# PUT TodoItems | ||
PUT {{WebUI_HostAddress}}/api/TodoItems/1 | ||
Cookie: {{AuthCookieName}}={{AuthCookieValue}} | ||
Content-Type: application/json | ||
|
||
// UpdateTodoItemCommand | ||
{ | ||
"Id": 1, | ||
"Title": "Eat a yummy burrito 🌯", | ||
"Done": true | ||
} | ||
|
||
### | ||
|
||
# DELETE TodoItem | ||
DELETE {{WebUI_HostAddress}}/api/TodoItems/1 | ||
Cookie: {{AuthCookieName}}={{AuthCookieValue}} | ||
|
||
### |