Skip to content

Commit

Permalink
bruno documentation (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumathi-thirumani authored Jan 27, 2025
1 parent ec8769c commit fb58937
Show file tree
Hide file tree
Showing 22 changed files with 369 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
meta {
name: Run a Graduation snapshot for EDW
type: http
seq: 1
}

post {
url: {{baseUrl}}/api/v1/graduate/edw/snapshot
body: json
auth: none
}

body:json {
{
"studentID": "",
"gradYear": "",
"pen": "",
"graduationFlag": "",
"honoursStanding": "",
"gpa": "",
"graduatedDate": "",
"runDate": "",
"sessionDate": "",
"schoolOfRecord": ""
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Adapt graduation data for reporting
type: http
seq: 1
}

post {
url: {{baseUrl}}/api/v1/graduate/report/data
body: json
auth: none
}

params:query {
~type:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
meta {
name: Get Report data from graduation by student pen
type: http
seq: 3
}

get {
url: {{baseUrl}}/api/v1/graduate/report/data/:pen
body: none
auth: none
}

params:query {
~type:
}

params:path {
pen:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Get Transcript binary from graduation by student pen
type: http
seq: 2
}

get {
url: {{baseUrl}}/api/v1/graduate/report/transcript/:pen
body: none
auth: none
}

params:query {
~interim:
~preview:
}

params:path {
pen:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Run different Grad Runs and Graduate Student by Student ID and projected type
type: http
seq: 1
}

get {
url: {{baseUrl}}/api/v1/graduate/studentid/:studentID/run/:projectedType
body: none
auth: none
}

params:query {
~batchId:
}

params:path {
studentID:
projectedType:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: District Report Creation
type: http
seq: 25
}

get {
url: {{baseUrl}}/api/v1/graduate/report/districtmonth
body: none
auth: none
}

headers {
Authorization:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: District Report Generation -PDF-
type: http
seq: 24
}

get {
url: {{baseUrl}}/api/v1/graduate/report/districtmonthpdf
body: none
auth: none
}

headers {
Authorization:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
meta {
name: School - District Report Creation
type: http
seq: 19
}

get {
url: {{baseUrl}}/api/v1/graduate/report/schooldistrictmonth
body: none
auth: none
}

params:query {
~slrt:
~drt:
~srt:
}

headers {
Authorization:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
meta {
name: School - District Report Retrieval
type: http
seq: 18
}

get {
url: {{baseUrl}}/api/v1/graduate/report/schooldistrictmonthpdf
body: none
auth: none
}

params:query {
~slrt:
~drt:
~srt:
}

headers {
Authorization:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
meta {
name: School Labels Report Creation
type: http
seq: 9
}

post {
url: {{baseUrl}}/api/v1/graduate/report/school/labels/pdf
body: json
auth: none
}

params:query {
reportType:
}

headers {
Authorization:
}

body:json {
[
{}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
meta {
name: School Report Creation
type: http
seq: 5
}

post {
url: {{baseUrl}}/api/v1/graduate/report/school
body: json
auth: none
}

params:query {
~type:
}

headers {
Authorization:
}

body:json {
[
{}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
meta {
name: School Report Generation
type: http
seq: 7
}

post {
url: {{baseUrl}}/api/v1/graduate/report/school/pdf
body: json
auth: none
}

params:query {
type:
}

body:json {
[
{}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: School Year End Report Creation
type: http
seq: 13
}

get {
url: {{baseUrl}}/api/v1/graduate/report/schoolmonth
body: none
auth: none
}

headers {
Authorization:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: School Year End Report Generation -PDF-
type: http
seq: 11
}

get {
url: {{baseUrl}}/api/v1/graduate/report/schoolyearendpdf
body: none
auth: none
}

headers {
Authorization:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
meta {
name: Student Certificate Creation
type: http
seq: 26
}

get {
url: {{baseUrl}}/api/v1/graduate/report/certificate/:pen
body: none
auth: none
}

params:query {
~isOverwrite:
}

params:path {
pen:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Students for year end reports
type: http
seq: 10
}

get {
url: {{baseUrl}}/api/v1/graduate/report/studentsforyearend
body: none
auth: none
}

headers {
Authorization:
}
9 changes: 9 additions & 0 deletions tools/bruno/EDUC-GRAD-GRADUATION-API/bruno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": "1",
"name": "EDUC-GRAD-GRADUATION-API",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}
21 changes: 21 additions & 0 deletions tools/bruno/EDUC-GRAD-GRADUATION-API/collection.bru
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);
}
}
8 changes: 8 additions & 0 deletions tools/bruno/EDUC-GRAD-GRADUATION-API/environments/dev.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
vars {
baseUrl: https://educ-grad-graduation-api-77c02f-dev.apps.silver.devops.gov.bc.ca
tokenRootUrl: https://soam-dev.apps.silver.devops.gov.bc.ca
}
vars:secret [
clientId,
secret
]
8 changes: 8 additions & 0 deletions tools/bruno/EDUC-GRAD-GRADUATION-API/environments/local.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
vars {
baseUrl: http://localhost:8088
tokenRootUrl: https://soam-dev.apps.silver.devops.gov.bc.ca
}
vars:secret [
clientId,
secret
]
8 changes: 8 additions & 0 deletions tools/bruno/EDUC-GRAD-GRADUATION-API/environments/prod.bru
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
]
8 changes: 8 additions & 0 deletions tools/bruno/EDUC-GRAD-GRADUATION-API/environments/test.bru
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
]

0 comments on commit fb58937

Please sign in to comment.