mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
Update API tests
This commit is contained in:
15
backend/apis/BlinkApiCollection/Person/CRUD/DeletePerson.bru
Normal file
15
backend/apis/BlinkApiCollection/Person/CRUD/DeletePerson.bru
Normal 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
|
||||
}
|
15
backend/apis/BlinkApiCollection/Person/CRUD/GetMyself.bru
Normal file
15
backend/apis/BlinkApiCollection/Person/CRUD/GetMyself.bru
Normal 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
|
||||
}
|
15
backend/apis/BlinkApiCollection/Person/CRUD/GetPerson.bru
Normal file
15
backend/apis/BlinkApiCollection/Person/CRUD/GetPerson.bru
Normal 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
|
||||
}
|
32
backend/apis/BlinkApiCollection/Person/CRUD/UpdatePerson.bru
Normal file
32
backend/apis/BlinkApiCollection/Person/CRUD/UpdatePerson.bru
Normal 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"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user