Register
POST {{url}}/signup
This request creates a new user.
Note: If you want to add yourself as an admin, you can add a key named role
and set the value admin
as a part of the request body.
This request also has a test script that sets the authorization token received in the response in the accessToken
collection variable. This helps you reuse the token in other requests easily.
Request Body
{"username"=>"sandrawill", "email"=>"sandrawilliam1996@example.com", "age"=>20, "firstName"=>"Sandra", "lastName"=>"William", "password"=>"sandrawill"}
RESPONSES
status: OK
{"status":true,"data":{"user":{"id":4,"username":"sandrawill","email":"sandrawilliam1996@example.com","age":20,"firstName":"Sandra","lastName":"William","password":"f4967bd8be423c9a60507c579ad58b051ac0fdca9e9d0cbcc6887bbbb24e05f5","role":"user","updatedAt":"2023-05-12T10:36:32.417Z","createdAt":"2023-05-12T10:36:32.417Z"},"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjQsInVzZXJuYW1lIjoic2FuZHJhd2lsbCIsImlhdCI6MTY4Mzg4Nzc5MiwiZXhwIjoxNjgzODkxMzkyfQ.1oWobYNftxayDssyHaP3E1wmRXLuGfRRXpuV6Oux-iU"}}