Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: RateMyProf integration #494

Closed
wants to merge 5 commits into from
Closed
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
25 changes: 25 additions & 0 deletions functions/build/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { CoursesController } from './../src/courses/Course.controller';
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { EventsController } from './../src/events/Event.controller';
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { InstructorController } from './../src/instructors/Instructor.controller';
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { SectionsController } from './../src/sections/Section.controller';
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { SubjectsController } from './../src/subjects/Subject.controller';
Expand Down Expand Up @@ -329,6 +331,29 @@ export function RegisterRoutes(app: express.Router) {
}
});
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
app.get('/instructors/rating',

function InstructorController_instructorRating(request: any, response: any, next: any) {
const args = {
name: {"in":"query","name":"name","required":true,"dataType":"string"},
};

// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa

let validatedArgs: any[] = [];
try {
validatedArgs = getValidatedArgs(args, request, response);

const controller = new InstructorController();


const promise = controller.instructorRating.apply(controller, validatedArgs as any);
promiseHandler(controller, promise, response, undefined, next);
} catch (err) {
return next(err);
}
});
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
app.get('/sections/:term',

function SectionsController_sections(request: any, response: any, next: any) {
Expand Down
34 changes: 33 additions & 1 deletion functions/build/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,38 @@
}
}
},
"/instructors/rating": {
"get": {
"operationId": "InstructorRating",
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"type": "number",
"format": "double"
}
}
}
},
"404": {
"description": "Instructor Not Found"
}
},
"security": [],
"parameters": [
{
"in": "query",
"name": "name",
"required": true,
"schema": {
"type": "string"
}
}
]
}
},
"/sections/{term}": {
"get": {
"operationId": "Sections",
Expand Down Expand Up @@ -1333,4 +1365,4 @@
"url": "/"
}
]
}
}
Loading