forked from atsapura/CardManagement
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSampleCalls.http
More file actions
55 lines (35 loc) · 1.26 KB
/
Copy pathSampleCalls.http
File metadata and controls
55 lines (35 loc) · 1.26 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
### Create user
POST https://localhost:5001/users
Content-Type: application/json
Content-Length: 136
{"name": "Uncle Vesemir", "address":{"country":"Finland", "city": "Helsinki", "postalCode": "12345", "addressLine1":"Redenia st. 156"}}
### Create card
POST https://localhost:5001/cards
Content-Type: application/json
Content-Length: 162
{"cardNumber": "4111111111111111", "name": "Uncle Vesemir", "expirationMonth": "8", "expirationYear":"2024", "userId":"69f79c5b-d31b-4a03-a038-062a10b59ad1"}
### top up
PATCH https://localhost:5001/cards/topUp
Content-Type: application/json
Content-Length: 55
{"cardNumber": "4111111111111111", "topUpAmount":8900}
### pay
PATCH https://localhost:5001/cards/processPayment
Content-Type: application/json
Content-Length: 55
{"cardNumber": "1234123412341234","paymentAmount":137}
### set daily limit
PATCH https://localhost:5001/cards/setDailyLimit
Content-Type: application/json
Content-Length: 52
{"cardNumber": "1234123412341234","limit":900}
### deactivate
PATCH https://localhost:5001/cards/deactivate
Content-Type: application/json
Content-Length: 35
{"cardNumber": "1234123412341234"}
### activate
PATCH https://localhost:5001/cards/activate
Content-Type: application/json
Content-Length: 35
{"cardNumber": "1234123412341234"}