mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-29 01:20:56 +02:00
folder names
This commit is contained in:
34
7-bank-project/api/api.http
Normal file
34
7-bank-project/api/api.http
Normal file
@@ -0,0 +1,34 @@
|
||||
# You need REST Client extension for VS Code to use this file
|
||||
# Download at https://aka.ms/vscode/rest-client
|
||||
|
||||
GET http://localhost:5000/api/
|
||||
|
||||
###
|
||||
|
||||
POST http://localhost:5000/api/accounts/
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
user=sinedied¤cy=$&balance=50
|
||||
|
||||
###
|
||||
|
||||
GET http://localhost:5000/api/accounts/sinedied
|
||||
|
||||
###
|
||||
|
||||
DELETE http://localhost:5000/api/accounts/sinedied
|
||||
|
||||
###
|
||||
|
||||
POST http://localhost:5000/api/accounts/sinedied/transactions
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"date": "2020-07-24T11:09:17.781Z",
|
||||
"object": "Bought book",
|
||||
"amount": -20
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
DELETE http://localhost:5000/api/accounts/sinedied/transactions/8825ff3e8331277911174fd1b73ff889
|
Reference in New Issue
Block a user