Skip to content

Commit

Permalink
bruno documentation (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumathi-thirumani authored Jan 27, 2025
1 parent 90b1c6c commit 287b18a
Show file tree
Hide file tree
Showing 18 changed files with 293 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Adapt graduation data for certificate reporting
type: http
seq: 3
}

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

headers {
Authorization:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
meta {
name: Adapt graduation data for transcript reporting
type: http
seq: 2
}

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

params:query {
~type:
}

headers {
Authorization:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
meta {
name: Get Certificate Report data from graduation by student pen
type: http
seq: 10
}

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

params:path {
pen:
}

headers {
Authorization:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
meta {
name: Get District Report pdf from graduation by distcode and report type
type: http
seq: 5
}

get {
url: {{baseUrl}}/api/v2/district/report/:distcode
body: none
auth: none
}

params:query {
type:
}

params:path {
distcode:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
meta {
name: Get School Report pdf from graduation by mincode and report type
type: http
seq: 11
}

get {
url: {{baseUrl}}/api/v1/amalgamated/schoolreport/:mincode
body: none
auth: none
}

params:query {
type:
}

params:path {
mincode:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Get Student Transcript or TVR Report pdf by PEN and report type
type: http
seq: 8
}

get {
url: {{baseUrl}}/api/v1/studentcredential/:pen/type/:type
body: none
auth: none
}

params:path {
pen:
type:
}

headers {
Authorization:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
meta {
name: Get Transcript Report data from graduation by student pen
type: http
seq: 6
}

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

params:query {
~type:
}

params:path {
pen:
}

headers {
Authorization:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
meta {
name: Get Transcript Report pdf by PEN and optional xml type parameter
type: http
seq: 7
}

get {
url: {{baseUrl}}/api/v1/studenttranscript/:pen
body: none
auth: none
}

params:query {
~type:
~interim:
}

params:path {
pen:
}

headers {
Authorization:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Get Xml Data for transcript reporting
type: http
seq: 1
}

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

headers {
Authorization:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
meta {
name: Get Student Demographic by PEN
type: http
seq: 1
}

get {
url: {{baseUrl}}/api/v1/student/demog/:pen
body: none
auth: none
}

params:path {
pen:
}

headers {
Authorization:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
meta {
name: Get student document by PEN
type: http
seq: 3
}

get {
url: {{baseUrl}}/api/v1/document/:pen
body: none
auth: none
}

params:query {
~docType:
~docFormat:
}

params:path {
pen:
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
meta {
name: Search For Students by PEN
type: http
seq: 2
}

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

params:path {
pen:
}

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

Please sign in to comment.