forked from jasontaylordev/CleanArchitecture
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added http calls API development inner-loop Visual Studio 2022 17.5
- Loading branch information
1 parent
ec394cb
commit aaddbca
Showing
4 changed files
with
107 additions
and
0 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 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,57 @@ | ||
@AuthToken = eyJhbGciOiJSUzI1NiIsImtpZCI6IkRldmVsb3BtZW50IiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2xvY2FsaG9zdDo0NDQ0NyIsIm5iZiI6MTY3NzkyNTI0NywiaWF0IjoxNjc3OTI1MjQ3LCJleHAiOjE2Nzc5Mjg4NDcsImF1ZCI6IldlYlVJQVBJIiwic2NvcGUiOlsiV2ViVUlBUEkiLCJvcGVuaWQiLCJwcm9maWxlIl0sImFtciI6WyJwd2QiXSwiY2xpZW50X2lkIjoiQ2xlYW5BcmNoaXRlY3R1cmUuV2ViVUkiLCJzdWIiOiI3M2YzY2RiMC02YjRkLTRlZGEtOGYzMy03ZjFjODYyMzRiMTUiLCJhdXRoX3RpbWUiOjE2Nzc5MjUyNDQsImlkcCI6ImxvY2FsIiwic2lkIjoiOTM5REY4NzM0MzczN0E4OEQwQTREOEE2MTI0RjRDMTEiLCJqdGkiOiI0Nzg0QzFFMDNGQzlDMTFGRDkwMjEyRTMwMTVBRUQ4NSJ9.wSzL7_5cUNSCocZei-_iBulEh9PpoSsFrdeOymB7zIJ1B1sXXNS0hMMlWEJryNhcJ5wocJitUs35cYnZCDAv5ufUssztSttIG6GDAVxBbJsKVQsELPdC-FzjZx5fOCd9VXGkkykl2lcJtCQpuOuEFKR_eo6koqX4iI_kK33r10a3tCUjsZfVz3-wbLoK7imDcISNbGZosTMEZfw-BTvBIKoAn5DndgWWs0xp9LIphP2a-mczd7PKDiUriRyT1TMn_CGsyd1MUb9mvD0aV2jiPc5qRm5Rf4KKQTWKSkKv_ToTRSCWSvwV7HLOwOcY0dn4mYaNHHbc7wUDIkozHGkATA | ||
@listId = 1 | ||
@id = 8 | ||
|
||
# GET TodoItems | ||
@pageNumber = 1 | ||
@pageSize = 10 | ||
GET https://localhost:44447/api/TodoItems?ListId={{listId}}&PageNumber={{pageNumber}}&PageSize={{pageSize}} | ||
Authorization: Bearer {{AuthToken}} | ||
|
||
### | ||
|
||
# POST TodoItems | ||
POST https://localhost:44447/api/TodoItems | ||
Authorization: Bearer {{AuthToken}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"listId": {{listId}}, | ||
"title": "My todo item" | ||
} | ||
|
||
|
||
### | ||
|
||
#POST TodoItems | ||
|
||
PUT https://localhost:44447/api/TodoItems/{{id}} | ||
Authorization: Bearer {{AuthToken}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"id": {{id}}, | ||
"title": "My edited todo item", | ||
"done": true | ||
} | ||
|
||
### | ||
|
||
#DELETE TodoItems | ||
DELETE https://localhost:44447/api/TodoItems/{{id}} | ||
Authorization: Bearer {{AuthToken}} | ||
|
||
|
||
### | ||
|
||
#PUT TodoItems UpdateItemDetails | ||
PUT https://localhost:44447/api/TodoItems/UpdateItemDetails?id={{id}} | ||
Authorization: Bearer {{AuthToken}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"id": {{id}}, | ||
"listId": {{listId}}, | ||
"priority": 0, | ||
"note": "My note" | ||
} |
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,41 @@ | ||
@AuthToken = eyJhbGciOiJSUzI1NiIsImtpZCI6IkRldmVsb3BtZW50IiwidHlwIjoiYXQrand0In0.eyJpc3MiOiJodHRwczovL2xvY2FsaG9zdDo0NDQ0NyIsIm5iZiI6MTY3NzkyNTI0NywiaWF0IjoxNjc3OTI1MjQ3LCJleHAiOjE2Nzc5Mjg4NDcsImF1ZCI6IldlYlVJQVBJIiwic2NvcGUiOlsiV2ViVUlBUEkiLCJvcGVuaWQiLCJwcm9maWxlIl0sImFtciI6WyJwd2QiXSwiY2xpZW50X2lkIjoiQ2xlYW5BcmNoaXRlY3R1cmUuV2ViVUkiLCJzdWIiOiI3M2YzY2RiMC02YjRkLTRlZGEtOGYzMy03ZjFjODYyMzRiMTUiLCJhdXRoX3RpbWUiOjE2Nzc5MjUyNDQsImlkcCI6ImxvY2FsIiwic2lkIjoiOTM5REY4NzM0MzczN0E4OEQwQTREOEE2MTI0RjRDMTEiLCJqdGkiOiI0Nzg0QzFFMDNGQzlDMTFGRDkwMjEyRTMwMTVBRUQ4NSJ9.wSzL7_5cUNSCocZei-_iBulEh9PpoSsFrdeOymB7zIJ1B1sXXNS0hMMlWEJryNhcJ5wocJitUs35cYnZCDAv5ufUssztSttIG6GDAVxBbJsKVQsELPdC-FzjZx5fOCd9VXGkkykl2lcJtCQpuOuEFKR_eo6koqX4iI_kK33r10a3tCUjsZfVz3-wbLoK7imDcISNbGZosTMEZfw-BTvBIKoAn5DndgWWs0xp9LIphP2a-mczd7PKDiUriRyT1TMn_CGsyd1MUb9mvD0aV2jiPc5qRm5Rf4KKQTWKSkKv_ToTRSCWSvwV7HLOwOcY0dn4mYaNHHbc7wUDIkozHGkATA | ||
@id = 1 | ||
|
||
# GET TodoLists | ||
GET https://localhost:44447/api/TodoLists | ||
Authorization: Bearer {{AuthToken}} | ||
|
||
### | ||
|
||
#GET TodoList | ||
GET https://localhost:44447/api/TodoLists/{{id}} | ||
Authorization: Bearer {{AuthToken}} | ||
|
||
### | ||
|
||
#POST TodoList | ||
POST https://localhost:44447/api/TodoLists | ||
Authorization: Bearer {{AuthToken}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"Title": "My Todo List" | ||
} | ||
|
||
### | ||
|
||
#PUT TodoList | ||
PUT https://localhost:44447/api/TodoLists/{{id}} | ||
Authorization: Bearer {{AuthToken}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"Id": {{id}}, | ||
"Title": "My Todo List edited" | ||
} | ||
|
||
### | ||
|
||
#DELETE TodoList | ||
DELETE https://localhost:44447/api/TodoLists/{{id}} | ||
Authorization: Bearer {{AuthToken}} |
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,2 @@ | ||
#GET WeatherForecast | ||
GET https://localhost:44447/api/WeatherForecast |