-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi-routes-insomnia.yaml
More file actions
140 lines (140 loc) · 3.44 KB
/
api-routes-insomnia.yaml
File metadata and controls
140 lines (140 loc) · 3.44 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
type: collection.insomnia.rest/5.0
name: api_loca
meta:
id: wrk_275596a398584a81af0704f7af7f1692
created: 1748598271112
modified: 1748598271112
collection:
- url: "{{ _.API_NODE_URL }}/users"
name: /users
meta:
id: req_16c6197afca44b47ba659e01604534f9
created: 1748598271115
modified: 1748602469078
isPrivate: false
sortKey: -1748599938143.5
method: POST
body:
mimeType: application/json
text: |-
{
"name": "pedro",
"lastname": "guimaraes",
"email": "usuario2@email.com",
"password": "321"
}
headers:
- name: Content-Type
value: application/json
authentication:
type: bearer
token: "{{ _.API_NODE_SESSION_TOKEN }}"
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.API_NODE_URL }}/users"
name: /users
meta:
id: req_4117bd74445f4572804ed84707a25b86
created: 1748598271116
modified: 1748602474518
isPrivate: false
sortKey: -1748599103218.25
method: GET
authentication:
type: bearer
disabled: false
token: "{{ _.API_NODE_SESSION_TOKEN }}"
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.API_NODE_URL }}/auth/sessions"
name: /auth/sessions
meta:
id: req_ca30fd3f03764c1098e43497936352f5
created: 1748601607994
modified: 1748602434315
isPrivate: false
sortKey: -1748601607994
method: POST
body:
mimeType: application/json
text: |-
{
"email": "usuario2@email.com",
"password": "321"
}
headers:
- name: Content-Type
value: application/json
- name: User-Agent
value: insomnia/11.1.0
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
- url: "{{ _.API_PYTHON_URL }}/send-message"
name: /send-message
meta:
id: req_3bbe2134d18040e79d8db51b30c4c0ad
created: 1748606314098
modified: 1748609167399
isPrivate: false
sortKey: -1748598685755.625
method: POST
body:
mimeType: application/json
text: |
{
"to_user_id": 2,
"message": "Olá! Tudo bem?"
}
headers:
- name: Content-Type
value: application/json
- name: User-Agent
value: insomnia/11.1.0
authentication:
type: bearer
token: "{{ _.API_NODE_SESSION_TOKEN }}"
settings:
renderRequestBody: true
encodeUrl: true
followRedirects: global
cookies:
send: true
store: true
rebuildPath: true
cookieJar:
name: Default Jar
meta:
id: jar_27c535cf1ca6a181e1f3a9db80b6b8f0edfcbc07
created: 1748598271121
modified: 1748598271121
environments:
name: Base Environment
meta:
id: env_27c535cf1ca6a181e1f3a9db80b6b8f0edfcbc07
created: 1748598271120
modified: 1748606734344
isPrivate: false
data:
API_NODE_URL: http://localhost:3000
API_NODE_SESSION_TOKEN: "{% response 'body',
'req_ca30fd3f03764c1098e43497936352f5', 'b64::JC50b2tlbg==::46b',
'when-expired', 3600 %}"
API_PYTHON_URL: http://localhost:5000