36 lines
659 B
Plaintext
36 lines
659 B
Plaintext
meta {
|
|
name: Register
|
|
type: http
|
|
seq: 2
|
|
}
|
|
|
|
post {
|
|
url: {{url}}/api/authentication/register
|
|
body: json
|
|
auth: inherit
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"name":"Blake", // option when in the frontend as we will pass over as username if not added
|
|
"username": "matthes01",
|
|
"email": "blake.matthes@alpla.com",
|
|
"password": "nova0511"
|
|
}
|
|
}
|
|
|
|
script:post-response {
|
|
// // grab the raw Set-Cookie header
|
|
// const cookies = res.headers["set-cookie"];
|
|
|
|
// const sessionCookie = cookies[0].split(";")[0];
|
|
|
|
// // Save it as an environment variable
|
|
// bru.setEnvVar("session_cookie", sessionCookie);
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|