Remove vars values + move headers to collection headers

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2025-11-17 22:40:08 +01:00
parent 67048d7f4b
commit dea69e018e
12 changed files with 28 additions and 60 deletions
+15 -6
View File
@@ -10,10 +10,6 @@ post {
auth: inherit auth: inherit
} }
headers {
X-XSRF-TOKEN:
}
body:json { body:json {
{ {
"name": "{{name}}", "name": "{{name}}",
@@ -22,8 +18,8 @@ body:json {
} }
vars:pre-request { vars:pre-request {
name: Mon super event name:
description: Ma super description description:
} }
assert { assert {
@@ -34,3 +30,16 @@ settings {
encodeUrl: true encodeUrl: true
timeout: 0 timeout: 0
} }
docs {
# /events/create -- POST
Permet de créer un événement.
La connexion est obligatoire, les cookies de connexions/XSRF doivent être présents.
L'utilisateur doit être admin pour créer un événement
Entrée: nom, description
}
-5
View File
@@ -10,11 +10,6 @@ post {
auth: none auth: none
} }
headers {
X-XSRF-TOKEN:
Accept: application/json
}
body:json { body:json {
{ {
"email": "{{email}}", "email": "{{email}}",
-5
View File
@@ -10,11 +10,6 @@ post {
auth: inherit auth: inherit
} }
headers {
X-XSRF-TOKEN:
Accept: application/json
}
assert { assert {
res.status: eq 200 res.status: eq 200
} }
+4 -8
View File
@@ -10,10 +10,6 @@ post {
auth: inherit auth: inherit
} }
headers {
Accept: application/json
}
body:json { body:json {
{ {
"name": "{{name}}", "name": "{{name}}",
@@ -24,10 +20,10 @@ body:json {
} }
vars:pre-request { vars:pre-request {
name: test name:
email: test@test.com email:
password: test password:
lastname: NAME lastname:
} }
assert { assert {
+1 -5
View File
@@ -10,12 +10,8 @@ delete {
auth: inherit auth: inherit
} }
headers {
X-XSRF-TOKEN:
}
vars:pre-request { vars:pre-request {
id: 2 id:
} }
settings { settings {
-5
View File
@@ -10,11 +10,6 @@ delete {
auth: inherit auth: inherit
} }
headers {
Accept: application/json
X-XSRF-TOKEN:
}
settings { settings {
encodeUrl: true encodeUrl: true
timeout: 0 timeout: 0
+1 -1
View File
@@ -11,7 +11,7 @@ get {
} }
vars:pre-request { vars:pre-request {
id: 2 id:
} }
settings { settings {
+2 -7
View File
@@ -10,11 +10,6 @@ post {
auth: inherit auth: inherit
} }
headers {
Accept: application/json
X-XSRF-TOKEN:
}
body:json { body:json {
{ {
"role": {{role}} "role": {{role}}
@@ -22,8 +17,8 @@ body:json {
} }
vars:pre-request { vars:pre-request {
role: 2 role:
id: 2 id:
} }
assert { assert {
+3 -8
View File
@@ -10,11 +10,6 @@ post {
auth: inherit auth: inherit
} }
headers {
Accept: application/json
X-XSRF-TOKEN:
}
body:json { body:json {
{ {
"name": "{{name}}", "name": "{{name}}",
@@ -24,9 +19,9 @@ body:json {
} }
vars:pre-request { vars:pre-request {
name: testUpdated name:
lastname: testUpdated lastname:
phone: 0607080910 phone:
} }
assert { assert {
+1 -6
View File
@@ -10,13 +10,8 @@ post {
auth: inherit auth: inherit
} }
headers {
Accept: application/json
X-XSRF-TOKEN:
}
vars:pre-request { vars:pre-request {
id: 2 id:
} }
settings { settings {
+1
View File
@@ -1,3 +1,4 @@
headers { headers {
Accept: application/json Accept: application/json
X-XSRF-TOKEN:
} }
-4
View File
@@ -10,10 +10,6 @@ get {
auth: inherit auth: inherit
} }
headers {
Accept: application/json
}
assert { assert {
res.status: eq 200 res.status: eq 200
} }