Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 547 Bytes

request.rest

File metadata and controls

34 lines (26 loc) · 547 Bytes

### vars @port = 3001 @localhost = http://localhost:{{port}}/api/v1 @contentType = application/json ###

# @name login POST {{localhost}}/login content-type: {{contentType}}

{
"email": "jordan+20@knight.works", "password": "test"

}

### @accessToken = {{login.response.body.accessToken}}

### # @name getUsers GET {{localhost}}/users Authorization: Bearer {{accessToken}}


POST {{localhost}}/register content-type: {{contentType}}

{
"email": "jordan+20@knight.works", "password": "test", "site": "admin.knight.works"

}