Home Reference Source Test

References

config

summary
public

controllers

summary
public

F async getHealth(req: *, res: *)

Health controller entry function

public

F async addUser(req: *, res: *)

Function which provides functionality to add/create new user in system

public

F async getUser(req: *, res: *)

Function which provides functionality to retrieve specific user based on provided userId

public

F async getUsers(req: *, res: *)

Function which provides functionality to retrieve all users present in system

middlewares

summary
public

F async errorhandler(err: *, req: *, res: *, next: *): *

public

F async notfounderror(req: *, res: *, next: *)

public

F responsehandler(body: *)

Generic success response handler

public

F async validatejson(err: *, req: *, res: *, next: *): *

models

summary
public

F skill(sequelize: Sequelize, DataTypes: Sequelize.DataTypes): *

Model class for "skill"

public

F user(sequelize: Sequelize, DataTypes: Sequelize.DataTypes): *

Model class for "skill"

routes

summary
public

V router: *

routes/v1

summary
public

V router: *

public

V router: *

services

summary
public

F async create(data: object): Promise

create function to add new user

public

F async findAll(): Promise

findAll function to retrieve all available users in system

public

F async findById(userId: number): Promise

findById function to fetch data for provided userId

utils

summary
public

F async generateSpecs()

public

F async gracefulShutdown(server: *)

validations

summary
public

V addUserSchema: {"type": string, "properties": *, "required": *, "additionalProperties": *}