static async getFilteredProducts()

in src/app/ContosoTraders.Ui.Website/src/services/productsService.ts [18:27]


    static async getFilteredProducts(filters:any = {}) {        
        filters.type = filters.type.type === undefined ? filters.type : filters.type.type;

        const params = {
            'params': filters,
            'paramsSerializer': qs.stringify(filters, { arrayFormat: 'repeat' })
        }
        const response = await axios.get(`${this.API_PREFIX}/products/?`+params.paramsSerializer);
        return response;
    };