mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-29 18:18:57 +01:00
15 lines
219 B
TOML
15 lines
219 B
TOML
[meta]
|
|
name = 'Get users'
|
|
type = 'http'
|
|
seq = 1
|
|
|
|
[http]
|
|
method = 'GET'
|
|
url = 'https://reqres.in/api/users'
|
|
|
|
[script]
|
|
post-response = '''
|
|
bru.setVar('token', res.body.token);
|
|
console.log('token: ' + res.body.token);
|
|
'''
|