Options
All
  • Public
  • Public/Protected
  • All
Menu

Module routes/role

Index

Functions

  • createStudentRole(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): Promise<Responses.PartialStudent>
  • Attempts to create a new role in the system.

    Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

      The Express.js request to extract all required data from.

    Returns Promise<Responses.PartialStudent>

    See the API documentation. Successes are passed using Promise.resolve, failures using Promise.reject.

  • getRouter(): express.Router
  • Gets the router for all /role/ related endpoints.

    Returns express.Router

    An Express.js {@link express.Router} routing all /role/ endpoints.

  • listStudentRoles(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): Promise<Responses.StudentRoles>
  • Attempts to list all roles in the system.

    Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

      The Express.js request to extract all required data from.

    Returns Promise<Responses.StudentRoles>

    See the API documentation. Successes are passed using Promise.resolve, failures using Promise.reject.

Generated using TypeDoc