Skip to content

Commit 25ba348

Browse files
bruno documentation (#372)
1 parent 457b881 commit 25ba348

13 files changed

+169
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Initial Load of Course Requirements
3+
type: http
4+
seq: 2
5+
}
6+
7+
get {
8+
url: {{baseUrl}}/api/v1/data-conversion/courseRequirement
9+
body: none
10+
auth: none
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Initial Load of Course Restrictions
3+
type: http
4+
seq: 1
5+
}
6+
7+
get {
8+
url: {{baseUrl}}/api/v1/data-conversion/courseRestriction
9+
body: none
10+
auth: none
11+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
meta {
2+
name: Delete a Student by PEN
3+
type: http
4+
seq: 2
5+
}
6+
7+
delete {
8+
url: {{baseUrl}}/api/v1/data-conversion/student/pen/:pen
9+
body: none
10+
auth: none
11+
}
12+
13+
params:path {
14+
pen:
15+
}
16+
17+
headers {
18+
Authorization:
19+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
meta {
2+
name: Delete multiple Students by PEN
3+
type: http
4+
seq: 4
5+
}
6+
7+
delete {
8+
url: {{baseUrl}}/api/v1/data-conversion/student/penlist
9+
body: json
10+
auth: none
11+
}
12+
13+
headers {
14+
Authorization:
15+
}
16+
17+
body:json {
18+
[
19+
{}
20+
]
21+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
meta {
2+
name: Initial Load of Students in Async Parallel Processing
3+
type: http
4+
seq: 3
5+
}
6+
7+
get {
8+
url: {{baseUrl}}/api/v1/data-conversion/student/parallel
9+
body: none
10+
auth: none
11+
}
12+
13+
params:query {
14+
~reload:
15+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
meta {
2+
name: Search For Student by PEN
3+
type: http
4+
seq: 1
5+
}
6+
7+
get {
8+
url: {{baseUrl}}/api/v1/data-conversion/student/pen/:pen
9+
body: none
10+
auth: none
11+
}
12+
13+
params:path {
14+
pen:
15+
}
16+
17+
headers {
18+
Authorization:
19+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Pen Updates in Async Parallel Processing
3+
type: http
4+
seq: 1
5+
}
6+
7+
get {
8+
url: {{baseUrl}}/api/v1/data-conversion/penUpdates/parallel
9+
body: none
10+
auth: none
11+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"version": "1",
3+
"name": "EDUC-GRAD-DATA-CONVERSION-API",
4+
"type": "collection",
5+
"ignore": [
6+
"node_modules",
7+
".git"
8+
]
9+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
headers {
2+
Authorization: Bearer {{token}}
3+
}
4+
5+
auth {
6+
mode: oauth2
7+
}
8+
9+
auth:oauth2 {
10+
grant_type: client_credentials
11+
access_token_url: {{tokenRootUrl}}/auth/realms/master/protocol/openid-connect/token
12+
client_id: {{clientId}}
13+
client_secret: {{secret}}
14+
scope:
15+
}
16+
17+
script:post-response {
18+
if(req.getAuthMode() == 'oauth2' && res.body.access_token) {
19+
bru.setVar('token', res.body.access_token);
20+
}
21+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
vars {
2+
baseUrl: https://educ-grad-data-conversion-api-e8a97a-dev.apps.silver.devops.gov.bc.ca
3+
tokenRootUrl: https://soam-dev.apps.silver.devops.gov.bc.ca
4+
}
5+
vars:secret [
6+
clientId,
7+
secret
8+
]

0 commit comments

Comments
 (0)