-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.test.yml
48 lines (48 loc) · 1.47 KB
/
serverless.test.yml
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
- name: login
endpoint: {function: auth}
request:
body:
username: novak
password: password123
response:
status: 200
- name: get_user_balance
endpoint: {function: get_user_balance}
request:
headers:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiVVNFUiNub3ZhayIsImV4cCI6MTY4MDA0NDEzMX0.u4Fw7AiKogGjDr7lisRAi_JiDor5dsB4W6DK8PKqfMs
response:
status: 200
- name: new_operation_handler
endpoint: {function: new_operation_handler}
request:
headers:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiVVNFUiNub3ZhayIsImV4cCI6MTY4MDA0NDEzMX0.u4Fw7AiKogGjDr7lisRAi_JiDor5dsB4W6DK8PKqfMs
body:
operation: 'division'
arguments:
operand1: 40
operand2: 4
response:
status: 200
- name: get_user_operations
endpoint: {function: get_user_operations}
request:
headers:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiVVNFUiNub3ZhayIsImV4cCI6MTY4MDA0NDEzMX0.u4Fw7AiKogGjDr7lisRAi_JiDor5dsB4W6DK8PKqfMs
form:
page_number: 1
rows_per_page: 4
response:
status: 200
- name: delete_operation_handler
endpoint:
method: DELETE
path: api/v1/operations/498
request:
headers:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiVVNFUiNub3ZhayIsImV4cCI6MTY4MDA0NDEzMX0.u4Fw7AiKogGjDr7lisRAi_JiDor5dsB4W6DK8PKqfMs
param:
operation_id: 498
response:
status: 200