mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-13 06:19:05 +02:00
add bruno testing
This commit is contained in:
9
apps/db-adapter/example-payloads/bruno.json
Normal file
9
apps/db-adapter/example-payloads/bruno.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "example-payloads",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
meta {
|
||||
name: create_person_by_google_id
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:8080/person/google/{{google_id}}
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
headers {
|
||||
Content-Type: application/json
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"first_name": "Alice",
|
||||
"last_name": "Wonderland",
|
||||
"born": "1990-06-01",
|
||||
"limit": 100,
|
||||
"mothers_first_name": "Mary",
|
||||
"mothers_last_name": "Smith",
|
||||
"email": "alice@example.com"
|
||||
}
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
google_id: alice123
|
||||
}
|
@@ -0,0 +1,34 @@
|
||||
meta {
|
||||
name: create_person_by_google_id_and_invite_code
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
patch {
|
||||
url: http://localhost:8080/person/google/{{google_id}}
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
headers {
|
||||
Content-Type: application/json
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"invite_code": "INV123456",
|
||||
"person": {
|
||||
"first_name": "Bob",
|
||||
"last_name": "Builder",
|
||||
"born": "1985-11-25",
|
||||
"limit": 200,
|
||||
"mothers_first_name": "Linda",
|
||||
"mothers_last_name": "Builder",
|
||||
"email": "bob@example.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
vars:pre-request {
|
||||
google_id: bob456
|
||||
}
|
11
apps/db-adapter/example-payloads/get_person_by_google_id.bru
Normal file
11
apps/db-adapter/example-payloads/get_person_by_google_id.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: get_person_by_google_id
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: http://localhost:8080/person/google/{{google_id}}
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
Reference in New Issue
Block a user