@RestController
@RequestMapping(value="/profiles")
public class ProfilesController
extends java.lang.Object
| Constructor and Description |
|---|
ProfilesController(ProfileService profileService) |
| Modifier and Type | Method and Description |
|---|---|
Profile |
create(ProfileDTO profile) |
void |
deleteById(java.lang.Integer id) |
java.util.List<Profile> |
getAll() |
Profile |
getById(java.lang.Integer id) |
Profile |
update(ProfileDTO profile) |
public ProfilesController(ProfileService profileService)
@GetMapping public java.util.List<Profile> getAll()
@GetMapping(value="/{id}")
public Profile getById(@PathVariable
java.lang.Integer id)
@PostMapping public Profile create(@RequestBody ProfileDTO profile)
@PutMapping public Profile update(@RequestBody ProfileDTO profile)
@DeleteMapping(value="/{id}")
public void deleteById(@PathVariable
java.lang.Integer id)