Ignore:
Timestamp:
09/22/22 03:14:04 (2 years ago)
Author:
Marko <Marko@…>
Branches:
master
Children:
436e0da
Parents:
d66b8eb
Message:

Specification filters logic implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • phonelux-backend/src/main/java/finki/it/phoneluxbackend/controllers/PhoneController.java

    rd66b8eb r34950c6  
    2424                                 @RequestParam(name = "sortBy", required = false) String sortBy,
    2525                                 @RequestParam(name = "priceRange", required = false) String priceRange,
    26                                  @RequestParam(name = "searchValue", required = false) String searchValue){
     26                                 @RequestParam(name = "searchValue", required = false) String searchValue,
     27                                 @RequestParam(name = "ram", required = false) String ram,
     28                                 @RequestParam(name = "rom", required = false) String rom,
     29                                 @RequestParam(name = "frontcamera", required = false) String frontcamera,
     30                                 @RequestParam(name = "backcamera", required = false) String backcamera,
     31                                 @RequestParam(name = "chipset", required = false) String chipset,
     32                                 @RequestParam(name = "cpu", required = false) String cpu,
     33                                 @RequestParam(name = "operatingsystem", required = false) String operatingsystem,
     34                                 @RequestParam(name = "color", required = false) String color,
     35                                 @RequestParam(name = "battery", required = false) String battery){
    2736
    28         return phoneService.getPhones(shops,brands,sortBy,priceRange,searchValue);
     37        return phoneService.getPhones(shops,brands,sortBy,priceRange,searchValue,
     38                ram, rom, frontcamera, backcamera, chipset, cpu, operatingsystem, color, battery);
    2939    }
    3040
Note: See TracChangeset for help on using the changeset viewer.