Class SettingsApiController

java.lang.Object
com.nmontytskyi.monitoring.server.controller.SettingsApiController

@RestController @RequestMapping("/api/settings") public class SettingsApiController extends Object
REST controller providing API access to application runtime settings.

Exposes endpoints for reading all settings and for updating the email notification address. All settings are persisted in the database via AppSettingsService and take effect immediately without a server restart.

Author:
Nazar Montytskyi
See Also:
  • Constructor Details

    • SettingsApiController

      public SettingsApiController()
  • Method Details

    • getAll

      @GetMapping public org.springframework.http.ResponseEntity<Map<String,String>> getAll()
    • updateEmail

      @PostMapping("/email") public org.springframework.http.ResponseEntity<Void> updateEmail(@RequestBody Map<String,String> body)