Package energy.eddie.aiida.web
Class UserSettingsController
java.lang.Object
energy.eddie.aiida.web.UserSettingsController
@Validated
@RestController
@RequestMapping("/user-settings")
public class UserSettingsController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<UserSettings> org.springframework.http.ResponseEntity<UserSettings> updateUserSettings(@Valid UpdateUserSettingsDto updateDto)
-
Constructor Details
-
UserSettingsController
-
-
Method Details
-
getUserSettings
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<UserSettings> getUserSettings() throws InvalidUserException- Throws:
InvalidUserException
-
updateUserSettings
@PutMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<UserSettings> updateUserSettings(@Valid @RequestBody @Valid UpdateUserSettingsDto updateDto) throws InvalidUserException - Throws:
InvalidUserException
-