Rename bruno files to match names of rest resources

This commit is contained in:
araemer 2026-02-22 07:27:32 +01:00
parent 195fbc52ad
commit 58a581fbac
14 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,8 @@
meta {
name: AuthPoint
seq: 2
}
auth {
mode: inherit
}

View file

@ -0,0 +1,28 @@
meta {
name: login
type: http
seq: 2
}
post {
url: {{url}}/auth/login
body: json
auth: inherit
}
body:json {
{
"userName": "{{username}}",
"password": "{{password}}"
}
}
script:post-response {
const body = res.getBody()
bru.setEnvVar("token", body.token)
bru.setEnvVar("tokenExpireDate", new Date().valueOf() + (body.expiryDate))
}
settings {
encodeUrl: true
}