java.lang.Object
org.autumnframework.service.test.feign.feigntest.clientapplication.person.controllers.TestPersonAPIController

@RestController @RequestMapping("/test/persons") public class TestPersonAPIController extends Object
Test controller that proxies the personService we try to test. So: TestPersonAPIController -> PersonAPIService -> PersonAPIRepository(extends DefaultAPIRepository)
  • Constructor Summary

    Constructors
    Constructor
    Description
    TestPersonAPIController(org.autumnframework.service.test.services.PersonService personService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.autumnframework.service.test.api.PersonDTO
    create(org.autumnframework.service.test.api.PersonDTO dto)
     
    void
     
    void
     
    org.springframework.data.domain.Page<org.autumnframework.service.test.api.PersonDTO>
    findAll(org.springframework.data.domain.Pageable pageable)
     
    Optional<org.autumnframework.service.test.api.PersonDTO>
     
    List<org.autumnframework.service.test.api.PersonDTO>
     
    void
     
    org.autumnframework.service.test.api.PersonDTO
    update(org.autumnframework.service.test.api.PersonDTO dto)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TestPersonAPIController

      public TestPersonAPIController(org.autumnframework.service.test.services.PersonService personService)
      Parameters:
      personService -
  • Method Details

    • create

      @PostMapping("/") @ResponseBody public org.autumnframework.service.test.api.PersonDTO create(@RequestBody org.autumnframework.service.test.api.PersonDTO dto)
      Parameters:
      dto -
      Returns:
    • findById

      @GetMapping("/{id}") public Optional<org.autumnframework.service.test.api.PersonDTO> findById(@PathVariable("id") UUID id)
      Parameters:
      id -
      Returns:
    • findByIds

      @GetMapping("/ids") public List<org.autumnframework.service.test.api.PersonDTO> findByIds(@RequestParam(name="id") List<UUID> ids)
      Parameters:
      ids -
      Returns:
    • findAll

      @GetMapping("/") public org.springframework.data.domain.Page<org.autumnframework.service.test.api.PersonDTO> findAll(org.springframework.data.domain.Pageable pageable)
      Parameters:
      pageable -
      Returns:
    • update

      @PutMapping(path="/") @ResponseBody public org.autumnframework.service.test.api.PersonDTO update(@RequestBody org.autumnframework.service.test.api.PersonDTO dto)
      Parameters:
      dto -
      Returns:
    • delete

      @DeleteMapping("/{id}") public void delete(@PathVariable("id") UUID id)
      Parameters:
      id -
    • deleteByIds

      @DeleteMapping("/ids") public void deleteByIds(@RequestParam(name="id") List<UUID> ids)
      Parameters:
      ids -
    • schedule

      @Scheduled(cron="0/10 * * * * *") public void schedule()