Changeset 950fa0d for src/main/java/edu/gjoko/schedlr/controllers/rest
- Timestamp:
- 05/24/23 23:18:47 (18 months ago)
- Branches:
- master
- Children:
- 77205be
- Parents:
- 8bcd64c
- Location:
- src/main/java/edu/gjoko/schedlr/controllers/rest
- Files:
-
- 2 added
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/edu/gjoko/schedlr/controllers/rest/BusinessController.java
r8bcd64c r950fa0d 2 2 3 3 import edu.gjoko.schedlr.entity.Business; 4 import edu.gjoko.schedlr.entity.BusinessType; 4 5 import edu.gjoko.schedlr.services.BusinessService; 5 6 import lombok.AllArgsConstructor; 6 import org.springframework.security.core.Authentication;7 import org.springframework.security.core.context.SecurityContextHolder;8 7 import org.springframework.web.bind.annotation.*; 9 8 … … 38 37 return businessService.findByOwner(businessOwnerId); 39 38 } 39 40 @GetMapping(path = "/{businessTypeId}") 41 public List<Business> getBusinessesByBusinessType(@PathVariable("businessTypeId") Long id) { 42 BusinessType businessType = new BusinessType(); 43 businessType.setId(id); 44 return businessService.findByBusinessTypeAndActiveStatus(businessType); 45 } 40 46 } -
src/main/java/edu/gjoko/schedlr/controllers/rest/NomenclatureController.java
r8bcd64c r950fa0d 2 2 3 3 import edu.gjoko.schedlr.entity.BusinessType; 4 import edu.gjoko.schedlr.repositories.BusinessTypeRepository;5 4 import edu.gjoko.schedlr.services.NomenclaturesService; 6 5 import lombok.AllArgsConstructor; … … 14 13 @RequestMapping("api/nomenclatures") 15 14 @AllArgsConstructor 16 public class Nomenclature sController {15 public class NomenclatureController { 17 16 18 17 private final NomenclaturesService nomenclaturesService;
Note:
See TracChangeset
for help on using the changeset viewer.