25 lines
672 B
Java
25 lines
672 B
Java
package de.ph87.home.thing;
|
|
|
|
import lombok.NonNull;
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import java.util.List;
|
|
|
|
@RestController
|
|
@RequiredArgsConstructor
|
|
@RequestMapping("Thing")
|
|
public class ThingController {
|
|
|
|
private final ThingService thingService;
|
|
|
|
@PostMapping(value = "list")
|
|
public List<? extends ThingDto<?>> list(@RequestBody @NonNull final ThingFilter filter) {
|
|
return thingService.list(filter);
|
|
}
|
|
|
|
}
|