créer collection bruno pour test d'api

This commit is contained in:
2026-05-25 18:37:05 +02:00
parent fc89568b37
commit 51a38b827f
10 changed files with 159 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
meta {
name: Get Token
type: http
seq: 1
}
post {
url: {{keycloakUrl}}/protocol/openid-connect/token
body: formUrlEncoded
auth: none
}
body:form-urlencoded {
grant_type: password
client_id: {{clientId}}
username: {{username}}
password: {{password}}
}
script:post-response {
if (res.status === 200) {
bru.setEnvVar("accessToken", res.body.access_token);
}
}