Update API tests

This commit is contained in:
xfarrow
2025-06-12 10:12:51 +02:00
parent 0733415397
commit fd10337d14
18 changed files with 9 additions and 9 deletions

View File

@ -0,0 +1,15 @@
meta {
name: DeletePerson
type: http
seq: 4
}
delete {
url: http://localhost:3000/api/people/me
body: none
auth: none
}
headers {
User-Agent: insomnia/2023.5.8
}

View File

@ -0,0 +1,15 @@
meta {
name: GetMyself
type: http
seq: 3
}
get {
url: http://localhost:3000/api/people/me
body: none
auth: inherit
}
headers {
User-Agent: insomnia/2023.5.8
}

View File

@ -0,0 +1,15 @@
meta {
name: GetPerson
type: http
seq: 2
}
get {
url: http://localhost:3000/api/people/1/details
body: none
auth: none
}
headers {
User-Agent: insomnia/2023.5.8
}

View File

@ -0,0 +1,32 @@
meta {
name: UpdatePerson
type: http
seq: 1
}
patch {
url: http://localhost:3000/api/people/me
body: json
auth: inherit
}
headers {
Content-Type: application/json
User-Agent: insomnia/2023.5.8
}
body:json {
{
"displayName": "John Junior Doe III",
"dateOfBirth": "1970-01-01",
"openToWork": "false",
"placeOfLiving": "Oslo, Norway",
"aboutMe": "I am a passionate software engineer, but I also love art and music",
"new_password": "password",
"old_password": "password",
"qualification" : "Software Engineer at Blink Inc. & Google LLC",
"visibility": "EVERYONE",
"oldPassword": "password",
"newPassword": "password"
}
}