UNPKG

nralcm

Version:

This is a framework based on NodeJs to manage rest api request lifecycle

18 lines (17 loc) 737 B
import { ProductRepository } from "../repository/product.repository"; import { Product } from "../models/product"; import { BaseController } from "../lifecycle"; import { Observable } from "rxjs/Observable"; export declare class ProductController extends BaseController { private productRepository; constructor(productRepository: ProductRepository); get(id: string, b: boolean, s: string, a: number, o: number): void; getProduct(id: number, sd: number, abc: string): Object; getProductById(id: number): Object; getProductDetails(queryString: boolean, optional: string): Object; post(product: Product, id: string): Object; testFilter(): { message: string; }; getOb(): Observable<number>; }