How to use @devon4node/common - 3 common examples

To help you get started, we’ve selected a few @devon4node/common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github devonfw / devon4node / samples / employee / src / app / employee / controllers / employee.crud.controller.ts View on Github external
import { Controller } from '@nestjs/common';
import { Crud } from '@nestjsx/crud';
import { CrudType } from '@devon4node/common/serializer';
import { Employee } from '../model';
import { EmployeeCrudService } from '../services';
import { ApiUseTags } from '@nestjs/swagger';

@Crud({
  model: {
    type: Employee,
  },
})
@CrudType(Employee)
@Controller('employee/employees')
@ApiUseTags('employee')
export class EmployeeCrudController {
  constructor(public service: EmployeeCrudService) {}
}

@devon4node/common

devon4node common library.

Apache-2.0
Latest version published 1 year ago

Package Health Score

62 / 100
Full package analysis