-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
bruno documentation (#515)
- dependabot/maven/api/grad-release/org.apache.maven.plugins-maven-compiler-plugin-3.14.0
- (#526, #515)
- dependabot/maven/api/grad-release/org.hibernate.orm.tooling-hibernate-enhance-maven-plugin-6.6.9.Final
- (#527, #515)
- dependabot/maven/api/grad-release/org.springframework.boot-spring-boot-starter-parent-3.4.3
- (#525, #515)
- feature/GRAD2-3335
- (#528, #515)
- grad-release
- (#515)
1 parent
af1e010
commit 31d1516
Showing
7 changed files
with
293 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"version": "1", | ||
"name": "EDUC-RULE-ENGINE-API", | ||
"type": "collection", | ||
"ignore": [ | ||
"node_modules", | ||
".git" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
headers { | ||
Authorization: Bearer {{token}} | ||
} | ||
|
||
auth { | ||
mode: oauth2 | ||
} | ||
|
||
auth:oauth2 { | ||
grant_type: client_credentials | ||
access_token_url: {{tokenRootUrl}}/auth/realms/master/protocol/openid-connect/token | ||
client_id: {{clientId}} | ||
client_secret: {{secret}} | ||
scope: | ||
} | ||
|
||
script:post-response { | ||
if(req.getAuthMode() == 'oauth2' && res.body.access_token) { | ||
bru.setVar('token', res.body.access_token); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
vars { | ||
baseUrl: https://educ-rule-engine-api-e8a97a-dev.apps.silver.devops.gov.bc.ca | ||
tokenRootUrl: https://soam-dev.apps.silver.devops.gov.bc.ca | ||
} | ||
vars:secret [ | ||
clientId, | ||
secret | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
vars { | ||
baseUrl: http://localhost:8095 | ||
tokenRootUrl: https://soam-dev.apps.silver.devops.gov.bc.ca | ||
} | ||
vars:secret [ | ||
clientId, | ||
secret | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
vars { | ||
baseUrl: http://localhost:8888 | ||
tokenRootUrl: https://soam-prod.apps.silver.devops.gov.bc.ca | ||
} | ||
vars:secret [ | ||
clientId, | ||
secret | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
vars { | ||
baseUrl: http://localhost:8888 | ||
tokenRootUrl: https://soam-test.apps.silver.devops.gov.bc.ca | ||
} | ||
vars:secret [ | ||
clientId, | ||
secret | ||
] |
231 changes: 231 additions & 0 deletions
231
tools/bruno/EDUC-RULE-ENGINE-API/rule-engine-controller/processGradAlgorithmRules.bru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,231 @@ | ||
meta { | ||
name: processGradAlgorithmRules | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
post { | ||
url: {{baseUrl}}/api/v1/rule-engine/run-grad-algorithm-rules | ||
body: json | ||
auth: none | ||
} | ||
|
||
body:json { | ||
{ | ||
"gradStudent": { | ||
"studentID": "", | ||
"pen": "", | ||
"legalFirstName": "", | ||
"legalMiddleNames": "", | ||
"legalLastName": "", | ||
"dob": "", | ||
"sexCode": "", | ||
"genderCode": "", | ||
"studentCitizenship": "", | ||
"usualFirstName": "", | ||
"usualMiddleNames": "", | ||
"usualLastName": "", | ||
"email": "", | ||
"emailVerified": "", | ||
"deceasedDate": "", | ||
"postalCode": "", | ||
"mincode": "", | ||
"localID": "", | ||
"gradeCode": "", | ||
"gradeYear": "", | ||
"demogCode": "", | ||
"statusCode": "", | ||
"memo": "", | ||
"trueStudentID": "", | ||
"program": "", | ||
"schoolOfRecord": "", | ||
"schoolOfRecordId": "", | ||
"schoolOfRecordName": "", | ||
"schoolOfRecordindependentAffiliation": "", | ||
"studentGrade": "", | ||
"studentStatus": "" | ||
}, | ||
"letterGradeList": [ | ||
{ | ||
"grade": "", | ||
"gpaMarkValue": "", | ||
"passFlag": "" | ||
} | ||
], | ||
"specialCaseList": [ | ||
{ | ||
"spCase": "", | ||
"label": "", | ||
"displayOrder": "", | ||
"description": "", | ||
"passFlag": "", | ||
"effectiveDate": "", | ||
"expiryDate": "" | ||
} | ||
], | ||
"algorithmRules": [ | ||
{ | ||
"programAlgoRuleID": "", | ||
"graduationProgramCode": "", | ||
"sortOrder": "", | ||
"algorithmRuleCode": { | ||
"algoRuleCode": "", | ||
"ruleImplementation": "", | ||
"label": "", | ||
"description": "", | ||
"displayOrder": "", | ||
"isActiveRule": "" | ||
} | ||
} | ||
], | ||
"gradProgramRules": [ | ||
{ | ||
"programRequirementID": "", | ||
"graduationProgramCode": "", | ||
"programRequirementCode": { | ||
"proReqCode": "", | ||
"label": "", | ||
"description": "", | ||
"requirementTypeCode": { | ||
"reqTypeCode": "", | ||
"label": "", | ||
"displayOrder": "", | ||
"description": "", | ||
"effectiveDate": "", | ||
"expiryDate": "" | ||
}, | ||
"requiredCredits": "", | ||
"notMetDesc": "", | ||
"requiredLevel": "", | ||
"languageOfInstruction": "", | ||
"activeRequirement": "", | ||
"requirementCategory": "", | ||
"traxReqNumber": "", | ||
"passed": "", | ||
"tempFailed": "" | ||
} | ||
} | ||
], | ||
"mapOptional": {}, | ||
"studentCourses": [], | ||
"excludedCourses": [], | ||
"excludedAssessments": [], | ||
"studentAssessments": [], | ||
"courseRequirements": [ | ||
{ | ||
"courseRequirementId": "", | ||
"courseCode": "", | ||
"courseLevel": "", | ||
"ruleCode": { | ||
"courseRequirementCode": "", | ||
"label": "", | ||
"description": "", | ||
"effectiveDate": "", | ||
"expiryDate": "" | ||
}, | ||
"courseName": "" | ||
} | ||
], | ||
"courseRestrictions": [ | ||
{ | ||
"courseRestrictionId": "", | ||
"mainCourse": "", | ||
"mainCourseLevel": "", | ||
"restrictedCourse": "", | ||
"restrictedCourseLevel": "", | ||
"restrictionStartDate": "", | ||
"restrictionEndDate": "" | ||
} | ||
], | ||
"assessmentRequirements": [ | ||
{ | ||
"assessmentRequirementId": "", | ||
"assessmentCode": "", | ||
"ruleCode": { | ||
"assmtRequirementCode": "", | ||
"label": "", | ||
"description": "", | ||
"effectiveDate": "", | ||
"expiryDate": "" | ||
} | ||
} | ||
], | ||
"assessmentList": [ | ||
{ | ||
"assessmentCode": "", | ||
"assessmentName": "", | ||
"language": "", | ||
"startDate": "", | ||
"endDate": "" | ||
} | ||
], | ||
"nonGradReasons": [], | ||
"requirementsMet": [], | ||
"gradStatus": { | ||
"pen": "", | ||
"program": "", | ||
"programCompletionDate": "", | ||
"gpa": "", | ||
"honoursStanding": "", | ||
"recalculateGradStatus": "", | ||
"schoolOfRecord": "", | ||
"schoolOfRecordId": "", | ||
"studentGrade": "", | ||
"studentStatus": "", | ||
"studentID": "", | ||
"consumerEducationRequirementMet": "", | ||
"adultStartDate": "" | ||
}, | ||
"gradOptionalProgramStatus": { | ||
"pen": "", | ||
"optionalProgramID": "", | ||
"studentOptionalProgramData": "", | ||
"optionalProgramCompletionDate": "", | ||
"optionalStudentCourses": { | ||
"studentCourseList": [] | ||
}, | ||
"optionalNonGradReasons": [], | ||
"optionalRequirementsMet": [], | ||
"studentID": "", | ||
"optionalGraduated": "" | ||
}, | ||
"gradProgram": { | ||
"programCode": "", | ||
"programName": "", | ||
"description": "", | ||
"displayOrder": "", | ||
"effectiveDate": "", | ||
"expiryDate": "" | ||
}, | ||
"school": { | ||
"minCode": "", | ||
"schoolId": "", | ||
"schoolName": "", | ||
"districtId": "", | ||
"districtName": "", | ||
"transcriptEligibility": "", | ||
"certificateEligibility": "", | ||
"address1": "", | ||
"address2": "", | ||
"city": "", | ||
"provCode": "", | ||
"countryCode": "", | ||
"postal": "", | ||
"openFlag": "", | ||
"schoolCategoryCode": "", | ||
"schoolCategoryLegacyCode": "" | ||
}, | ||
"ldCounter": "", | ||
"cpList": [ | ||
{ | ||
"id": "", | ||
"careerProgramCode": "", | ||
"careerProgramName": "", | ||
"studentID": "" | ||
} | ||
], | ||
"consumerEdFlagUsed": "", | ||
"projected": "", | ||
"graduated": "" | ||
} | ||
} |