-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathBudgetTracker.http
More file actions
84 lines (70 loc) · 2.38 KB
/
BudgetTracker.http
File metadata and controls
84 lines (70 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
@BudgetTracker_HostAddress = https://localhost:7196
# @name GetBudgets
GET {{BudgetTracker_HostAddress}}/budgets
Accept: application/json
Authorization: Bearer {{$aadV2Token scopes:api://API_CLIENT_ID/access_as_user tenantId:TENANT_ID clientId:API_CLIENT_ID}}
###
# @name GetBudgetByName
GET {{BudgetTracker_HostAddress}}/budgets?budgetName=Contoso Copilot plugin project
Accept: application/json
Authorization: {{GetBudgets.request.headers.Authorization}}
###
# @name CreateBudget
POST {{BudgetTracker_HostAddress}}/budgets
Content-Type: application/json
Authorization: {{GetBudgets.request.headers.Authorization}}
{
"name": "Copilot development",
"availableFunds": 1000.00
}
###
# @name ChargeBudget
POST {{BudgetTracker_HostAddress}}/budgets/charge
Content-Type: application/json
Authorization: {{GetBudgets.request.headers.Authorization}}
{
"budgetName": "Contoso Copilot project",
"amount": 100.00,
"expenseCategory": "travel",
"description": "Parking charges"
}
###
# @name ExtendBudget
POST {{BudgetTracker_HostAddress}}/budgets/extend
Content-Type: application/json
Authorization: {{GetBudgets.request.headers.Authorization}}
{
"budgetName": "",
"amount": 1.00,
"description": ""
}
###
# @name GetTransactions
GET {{BudgetTracker_HostAddress}}/transactions
Accept: application/json
Authorization: {{GetBudgets.request.headers.Authorization}}
###
# @name GetTransactionsByCategory
GET {{BudgetTracker_HostAddress}}/transactions?category=materials
Accept: application/json
Authorization: {{GetBudgets.request.headers.Authorization}}
###
# @name GetTransactionsByBudtransactions/get
GET {{BudgetTracker_HostAddress}}/transactions?budgetName=Alpine Ski house website redesign
Accept: application/json
Authorization: {{GetBudgets.request.headers.Authorization}}
###
# @name GetTransactionsByBudgetAndCategory
GET {{BudgetTracker_HostAddress}}/transactions?budgetName=Alpine Ski house website redesign&category=hosting
Accept: application/json
Authorization: {{GetBudgets.request.headers.Authorization}}
###
# @name SendTransactionsReport
POST {{BudgetTracker_HostAddress}}/transactions/send
Accept: application/json
Authorization: {{GetBudgets.request.headers.Authorization}}
###
# @name SendTransactionsReportByBudget
POST {{BudgetTracker_HostAddress}}/transactions/send?budgetName=fourth coffee lobby renovation
Accept: application/json
Authorization: {{GetBudgets.request.headers.Authorization}}