Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • addStudent(req: Request, res: Response): Promise<void>
  • async

    Adds a new student to a course with the data given by the HTTP-Request
    Corresponding API-Call: POST /course/:courseId/addStudent

    Parameters

    • req: Request

      Holds the data from the HTTP-Request

    • res: Response

      Used to form the response

    Returns Promise<void>

  • changeCourse(req: Request, res: Response): Promise<void>
  • deleteCourse(req: Request, res: Response): Promise<void>
  • deleteStudent(req: Request, res: Response): Promise<void>
  • async

    Reomves a student to a course with the data given by the HTTP-Request
    Corresponding API-Call: POST /course/:courseId/deleteStudent

    Parameters

    • req: Request

      Holds the data from the HTTP-Request

    • res: Response

      Used to form the response

    Returns Promise<void>

  • getAllCourses(req: Request, res: Response): Promise<void>
  • async

    Get all courses
    Corresponding API-Call : GET /course/getAll

    Parameters

    • req: Request

      Holds the data from the HTTP-Request

    • res: Response

      Used to form the response

    Returns Promise<void>

  • registerCourse(req: Request, res: Response): Promise<void>
  • async

    Registers a new Course with the data given by the HTTP-Request
    Corresponding API-Call: POST /course/register

    Parameters

    • req: Request

      Holds the data from the HTTP-Request

    • res: Response

      Used to form the response

    Returns Promise<void>

  • selectCourse(req: Request, res: Response): Promise<void>
  • async

    Returns the informations to a course with the data given by the HTTP-Request
    Corresponding API-Call: GET /course/:courseId

    Parameters

    • req: Request

      Holds the data from the HTTP-Request

    • res: Response

      Used to form the response

    Returns Promise<void>

Generated using TypeDoc