Skip to content

Commit 546c4e7

Browse files
committed
Added bruno files (replacement for Postman) for testing the API calls to Neon.
1 parent 1bf5681 commit 546c4e7

9 files changed

Lines changed: 159 additions & 0 deletions

tests/bruno/bruno.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"version": "1",
3+
"name": "good_dads_api_calls",
4+
"type": "collection",
5+
"ignore": [
6+
"node_modules",
7+
".git"
8+
]
9+
}

tests/bruno/children.bru

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
meta {
2+
name: children
3+
type: http
4+
seq: 3
5+
}
6+
7+
get {
8+
url: https://api.civicore.com/good_dads/__revision=api/api/v3/data/persons_applications_children?fields=["firstName", "lastName", "dateOfBirth"]&where={"whereType":"AND","clauses":[{"fieldName":"persons_id","operator":"=","operand":"88","type":"id"}]}
9+
body: none
10+
auth: inherit
11+
}
12+
13+
params:query {
14+
fields: ["firstName", "lastName", "dateOfBirth"]
15+
where: {"whereType":"AND","clauses":[{"fieldName":"persons_id","operator":"=","operand":"88","type":"id"}]}
16+
}
17+
18+
settings {
19+
encodeUrl: true
20+
timeout: 0
21+
}

tests/bruno/collection.bru

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
auth {
2+
mode: apikey
3+
}
4+
5+
auth:apikey {
6+
key: key
7+
value: 57c21d66c33da2a19032cba57c1f0d02.3.1a65882d0991181fdc8bd725ad6af178.1847394181
8+
placement: queryparams
9+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
meta {
2+
name: consumer's auth for disclosure
3+
type: http
4+
seq: 4
5+
}
6+
7+
get {
8+
url: https://api.civicore.com/good_dads/__revision=api/api/v3/data/persons_applications?fields=["persons_id","division","divisionOther","homeCellPhone","dateOfBirth","fullAddress","city","state","email","releaseTo","releaseToOther","releaseToOtherAddress","purposeOfDisclosure","programName","purposeOfDisclosureOther","informationToBeDisclosed","informationToBeDisclosedOther","acceptsTextMessage"]&where={"whereType":"AND","clauses":[{"whereType":"AND","clauses":[{"fieldName":"persons_id","operator":"=","operand":"88","type":"id"}]}]}
9+
body: none
10+
auth: inherit
11+
}
12+
13+
params:query {
14+
fields: ["persons_id","division","divisionOther","homeCellPhone","dateOfBirth","fullAddress","city","state","email","releaseTo","releaseToOther","releaseToOtherAddress","purposeOfDisclosure","programName","purposeOfDisclosureOther","informationToBeDisclosed","informationToBeDisclosedOther","acceptsTextMessage"]
15+
where: {"whereType":"AND","clauses":[{"whereType":"AND","clauses":[{"fieldName":"persons_id","operator":"=","operand":"88","type":"id"}]}]}
16+
}
17+
18+
settings {
19+
encodeUrl: true
20+
timeout: 0
21+
}

tests/bruno/contact_info.bru

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
meta {
2+
name: contact_info
3+
type: http
4+
seq: 1
5+
}
6+
7+
get {
8+
url: https://api.civicore.com/good_dads/__revision=api/api/v3/data/persons/88?fields=["regions_id","enteredDate","address1","address2","city","state","zip","employer","tShirtSize","homeCellPhone","workPhone","otherNumber","email","probationParoleCaseWorkerName","probationParoleCaseWorkerPhone","contactWithChildren","contactType","monthlyChildSupportPayment","maritalStatus","ethnicity"]
9+
body: none
10+
auth: none
11+
}
12+
13+
params:query {
14+
fields: ["regions_id","enteredDate","address1","address2","city","state","zip","employer","tShirtSize","homeCellPhone","workPhone","otherNumber","email","probationParoleCaseWorkerName","probationParoleCaseWorkerPhone","contactWithChildren","contactType","monthlyChildSupportPayment","maritalStatus","ethnicity"]
15+
}
16+
17+
settings {
18+
encodeUrl: true
19+
timeout: 0
20+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
meta {
2+
name: healthy marriage and responsible fatherhood assessment worksheet
3+
type: http
4+
seq: 5
5+
}
6+
7+
get {
8+
url: https://api.civicore.com/good_dads/__revision=api/api/v3/data/persons_assessment_worksheet?fields=["persons_id","fullName","dateOfBirth","missouriResident","childUnder18","financiallyEligible","dL","utilityBill","payStub","writtenEmployerStatement","socialSecurityBenefitsStatement","selfAttestationOfNoEmploymentOrIncome","unemploymentCompensation","other","hoseholdIncome","numberOfFamilyMembersInHousehold","percentageOfFPL"]&where={"whereType":"AND","clauses":[{"fieldName":"persons_id","operator":"=","operand":"88","type":"id"}]}
9+
body: none
10+
auth: inherit
11+
}
12+
13+
params:query {
14+
fields: ["persons_id","fullName","dateOfBirth","missouriResident","childUnder18","financiallyEligible","dL","utilityBill","payStub","writtenEmployerStatement","socialSecurityBenefitsStatement","selfAttestationOfNoEmploymentOrIncome","unemploymentCompensation","other","hoseholdIncome","numberOfFamilyMembersInHousehold","percentageOfFPL"]
15+
where: {"whereType":"AND","clauses":[{"fieldName":"persons_id","operator":"=","operand":"88","type":"id"}]}
16+
}
17+
18+
settings {
19+
encodeUrl: true
20+
timeout: 0
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
meta {
2+
name: healthy marriage and responsible fatherhood introductory survey
3+
type: http
4+
seq: 6
5+
}
6+
7+
get {
8+
url: https://api.civicore.com/good_dads/__revision=api/api/v3/data/persons_introductory_survey?fields=["persons_id","dateOfBirth","programName","reasons","reasonsOther","hearAboutUs","hearAboutUsOther","expectToGain","expectToGainOther"]&where={"whereType":"AND","clauses":[{"fieldName":"persons_id","operator":"=","operand":"88","type":"id"}]}
9+
body: none
10+
auth: inherit
11+
}
12+
13+
params:query {
14+
fields: ["persons_id","dateOfBirth","programName","reasons","reasonsOther","hearAboutUs","hearAboutUsOther","expectToGain","expectToGainOther"]
15+
where: {"whereType":"AND","clauses":[{"fieldName":"persons_id","operator":"=","operand":"88","type":"id"}]}
16+
}
17+
18+
settings {
19+
encodeUrl: true
20+
timeout: 0
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
meta {
2+
name: individualized service plan
3+
type: http
4+
seq: 7
5+
}
6+
7+
get {
8+
url: https://api.civicore.com/good_dads/__revision=api/api/v3/data/persons_service_plan?fields=["persons_id","programName","clientNumber","reviewDates","serviceAreas","serviceIdentifiedByTheParticipants","goals_parentingSkills","goals_parentingSkillsObj","goals_parentingSkillsPersonRes","goals_parentingSkillsTimeline","goals_parentingSkillsMeasure","goals_managingStress","goals_managingStressObj","goals_managingStressPersonRes","goals_managingStressTimeline","goals_managingStressMeasure","goals_custodyVisitation","goals_custodyVisitationObj","goals_custodyVisitationPersonRes","goals_custodyVisitationMeasure","goals_educationEmployment","goals_educationEmploymentObj","goals_educationEmploymentPersonRes","goals_educationEmploymentTimeline","goals_educationEmploymentMeasure","goals_housingTransportation","goals_housingTransportationObj","goals_housingTransportationPersonRes","goals_housingTransportationTimeline","goals_housingTransportationMeasure","goals_childSupportAction","goals_childSupportActionObj","goals_childSupportActionPersonRes","goals_childSupportActionTimeline","goals_childSupportActionMeasure","goals_childSupportAwareness","goals_childSupportAwarenessObj","goals_childSupportAwarenessPersonRes","goals_childSupportAwarenessTimeline","goals_childSupportAwarenessMeasure","goals_effectiveCoParenting","goals_effectiveCoParentingObj","goals_effectiveCoParentingPersonRes","goals_effectiveCoParentingTimeline","goals_effectiveCoParentingMeasure","goals_fatherToFatherMentoring","goals_fatherToFatherMentoringObj","goals_fatherToFatherMentoringPersonRes","goals_fatherToFatherMentoringTimeline","goals_fatherToFatherMentoringMeasure"]&where={"whereType":"AND","clauses":[{"fieldName":"persons_id","operator":"=","operand":"88","type":"id"}]}
9+
body: none
10+
auth: inherit
11+
}
12+
13+
params:query {
14+
fields: ["persons_id","programName","clientNumber","reviewDates","serviceAreas","serviceIdentifiedByTheParticipants","goals_parentingSkills","goals_parentingSkillsObj","goals_parentingSkillsPersonRes","goals_parentingSkillsTimeline","goals_parentingSkillsMeasure","goals_managingStress","goals_managingStressObj","goals_managingStressPersonRes","goals_managingStressTimeline","goals_managingStressMeasure","goals_custodyVisitation","goals_custodyVisitationObj","goals_custodyVisitationPersonRes","goals_custodyVisitationMeasure","goals_educationEmployment","goals_educationEmploymentObj","goals_educationEmploymentPersonRes","goals_educationEmploymentTimeline","goals_educationEmploymentMeasure","goals_housingTransportation","goals_housingTransportationObj","goals_housingTransportationPersonRes","goals_housingTransportationTimeline","goals_housingTransportationMeasure","goals_childSupportAction","goals_childSupportActionObj","goals_childSupportActionPersonRes","goals_childSupportActionTimeline","goals_childSupportActionMeasure","goals_childSupportAwareness","goals_childSupportAwarenessObj","goals_childSupportAwarenessPersonRes","goals_childSupportAwarenessTimeline","goals_childSupportAwarenessMeasure","goals_effectiveCoParenting","goals_effectiveCoParentingObj","goals_effectiveCoParentingPersonRes","goals_effectiveCoParentingTimeline","goals_effectiveCoParentingMeasure","goals_fatherToFatherMentoring","goals_fatherToFatherMentoringObj","goals_fatherToFatherMentoringPersonRes","goals_fatherToFatherMentoringTimeline","goals_fatherToFatherMentoringMeasure"]
15+
where: {"whereType":"AND","clauses":[{"fieldName":"persons_id","operator":"=","operand":"88","type":"id"}]}
16+
}
17+
18+
settings {
19+
encodeUrl: true
20+
timeout: 0
21+
}

tests/bruno/meta.bru

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
meta {
2+
name: meta
3+
type: http
4+
seq: 7
5+
}
6+
7+
get {
8+
url: https://api.civicore.com/good_dads/__revision=api/v3/meta/tables/persons_applications
9+
body: none
10+
auth: inherit
11+
}
12+
13+
settings {
14+
encodeUrl: true
15+
timeout: 0
16+
}

0 commit comments

Comments
 (0)