Add delete user route

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2025-10-21 22:02:53 +02:00
parent fd8c47cd95
commit 0d926d4b95
7 changed files with 48 additions and 4 deletions
+44
View File
@@ -0,0 +1,44 @@
meta {
name: Create user
type: http
seq: 6
}
post {
url: http://localhost:8000/api/users/register
body: json
auth: inherit
}
headers {
Accept: application/json
}
body:json {
{
"name": "{{name}}",
"lastname": "{{lastname}}",
"email": "{{email}}",
"password": "{{password}}"
}
}
vars:pre-request {
name: name
email: test@test.com
password: test
lastname: NAME
}
assert {
res.status: eq 200
}
settings {
encodeUrl: true
timeout: 0
}
docs {
Créer un utilisateur test
}
+21
View File
@@ -0,0 +1,21 @@
meta {
name: Delete user
type: http
seq: 8
}
delete {
url: http://localhost:8000/api/users
body: none
auth: inherit
}
headers {
Accept: application/json
X-XSRF-TOKEN:
}
settings {
encodeUrl: true
timeout: 0
}
+8
View File
@@ -0,0 +1,8 @@
meta {
name: Users
seq: 8
}
auth {
mode: inherit
}