Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ node_modules
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
.VSCODECounter
"Engine API"
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Get all courses for a specific term with instructor information
type: http
seq: 1
}

get {
url: {{baseUrl}}/api/courses/:term
body: none
auth: inherit
}

params:path {
term:
}
16 changes: 16 additions & 0 deletions Engine API/Courses/Get all courses.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
meta {
name: Get all courses
type: http
seq: 3
}

get {
url:
body: none
auth: inherit
}

settings {
encodeUrl: true
timeout: 0
}
15 changes: 15 additions & 0 deletions Engine API/Courses/Get all sections for a specific course.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Get all sections for a specific course
type: http
seq: 2
}

get {
url: {{baseUrl}}/api/courses/:courseId/sections
body: none
auth: inherit
}

params:path {
courseId:
}
7 changes: 7 additions & 0 deletions Engine API/Courses/folder.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
meta {
name: Courses
}

auth {
mode: inherit
}
19 changes: 19 additions & 0 deletions Engine API/Events/Create a new custom event.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
meta {
name: Create a new custom event
type: http
seq: 1
}

post {
url: {{baseUrl}}/api/events/
body: json
auth: inherit
}

body:json {
{
"userId": "",
"title": "",
"times": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Delete a custom event (cascades to delete event-schedule associations)
type: http
seq: 3
}

delete {
url: {{baseUrl}}/api/events/:eventId
body: none
auth: inherit
}

params:path {
eventId:
}
15 changes: 15 additions & 0 deletions Engine API/Events/Get all schedule associations for an event.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Get all schedule associations for an event
type: http
seq: 4
}

get {
url: {{baseUrl}}/api/events/:eventId/schedules
body: none
auth: inherit
}

params:path {
eventId:
}
22 changes: 22 additions & 0 deletions Engine API/Events/Update a custom event.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
meta {
name: Update a custom event
type: http
seq: 2
}

patch {
url: {{baseUrl}}/api/events/:eventId
body: json
auth: inherit
}

params:path {
eventId:
}

body:json {
{
"title": "",
"times": {}
}
}
7 changes: 7 additions & 0 deletions Engine API/Events/folder.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
meta {
name: Events
}

auth {
mode: inherit
}
18 changes: 18 additions & 0 deletions Engine API/Feedback/Submit user feedback.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
meta {
name: Submit user feedback
type: http
seq: 1
}

post {
url: {{baseUrl}}/api/feedback/
body: json
auth: inherit
}

body:json {
{
"userId": "",
"feedback": ""
}
}
7 changes: 7 additions & 0 deletions Engine API/Feedback/folder.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
meta {
name: Feedback
}

auth {
mode: inherit
}
11 changes: 11 additions & 0 deletions Engine API/Health/Basic health check.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Basic health check
type: http
seq: 1
}

get {
url: {{baseUrl}}/health/
body: none
auth: inherit
}
11 changes: 11 additions & 0 deletions Engine API/Health/Detailed health check.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Detailed health check
type: http
seq: 2
}

get {
url: {{baseUrl}}/health/detailed
body: none
auth: inherit
}
7 changes: 7 additions & 0 deletions Engine API/Health/folder.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
meta {
name: Health
}

auth {
mode: inherit
}
15 changes: 15 additions & 0 deletions Engine API/Instructors/Get a specific instructor by netid.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Get a specific instructor by netid
type: http
seq: 2
}

get {
url: {{baseUrl}}/api/instructors/:netid
body: none
auth: inherit
}

params:path {
netid:
}
11 changes: 11 additions & 0 deletions Engine API/Instructors/Get all instructors.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: Get all instructors
type: http
seq: 1
}

get {
url: {{baseUrl}}/api/instructors/
body: none
auth: inherit
}
7 changes: 7 additions & 0 deletions Engine API/Instructors/folder.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
meta {
name: Instructors
}

auth {
mode: inherit
}
24 changes: 24 additions & 0 deletions Engine API/Schedules/Add a course to a schedule.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
meta {
name: Add a course to a schedule
type: http
seq: 6
}

post {
url: {{baseUrl}}/api/schedules/:scheduleId/courses
body: json
auth: inherit
}

params:path {
scheduleId:
}

body:json {
{
"courseId": "",
"color": "",
"isComplete": false,
"confirms": {}
}
}
21 changes: 21 additions & 0 deletions Engine API/Schedules/Add an event to a schedule.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
meta {
name: Add an event to a schedule
type: http
seq: 12
}

post {
url: {{baseUrl}}/api/schedules/:scheduleId/events
body: json
auth: inherit
}

params:path {
scheduleId:
}

body:json {
{
"eventId": ""
}
}
28 changes: 28 additions & 0 deletions Engine API/Schedules/Bulk add multiple courses to a schedule.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
meta {
name: Bulk add multiple courses to a schedule
type: http
seq: 8
}

post {
url: {{baseUrl}}/api/schedules/:scheduleId/courses/bulk
body: json
auth: inherit
}

params:path {
scheduleId:
}

body:json {
{
"courses": [
{
"courseId": "",
"color": "",
"isComplete": false,
"confirms": {}
}
]
}
}
15 changes: 15 additions & 0 deletions Engine API/Schedules/Clear all courses from a schedule.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Clear all courses from a schedule
type: http
seq: 7
}

delete {
url: {{baseUrl}}/api/schedules/:scheduleId/courses
body: none
auth: inherit
}

params:path {
scheduleId:
}
15 changes: 15 additions & 0 deletions Engine API/Schedules/Clear all events from a schedule.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Clear all events from a schedule
type: http
seq: 13
}

delete {
url: {{baseUrl}}/api/schedules/:scheduleId/events
body: none
auth: inherit
}

params:path {
scheduleId:
}
21 changes: 21 additions & 0 deletions Engine API/Schedules/Create a new schedule.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
meta {
name: Create a new schedule
type: http
seq: 4
}

post {
url: {{baseUrl}}/api/schedules/
body: json
auth: inherit
}

body:json {
{
"userId": "",
"term": "",
"title": "",
"relativeId": "",
"isPublic": false
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
meta {
name: Delete a schedule (cascades to delete associated courses/events)
type: http
seq: 3
}

delete {
url: {{baseUrl}}/api/schedules/:scheduleId
body: none
auth: inherit
}

params:path {
scheduleId:
}
Loading
Loading