tsoa-custom-decorators
Version:
Build swagger-compliant REST APIs using TypeScript and Node
17 lines (14 loc) • 561 B
text/typescript
import { Route } from '../../../src/decorators/route';
import { Body } from '../../../src/decorators/parameter';
import { Post } from '../../../src/decorators/methods';
import { TestModel } from '../testModel';
import { ModelService } from '../services/modelService';
('PostTest')
export class InvalidPostTestController {
('WithMultipleBody')
public async postWithMultipleBodyParams(
() firstParam: TestModel,
()secondParam: TestModel): Promise<TestModel> {
return new ModelService().getModel();
}
}