Prepared controllers

This commit is contained in:
Andrey Terentev 2024-03-30 21:31:28 +07:00 committed by Andrey Terentev
parent 0a2c5d5789
commit d0199bb8f0

View File

@ -10,6 +10,8 @@ import ru.dragonestia.picker.api.model.account.ResponseAccount;
import ru.dragonestia.picker.model.Account; import ru.dragonestia.picker.model.Account;
import ru.dragonestia.picker.service.AccountService; import ru.dragonestia.picker.service.AccountService;
import java.util.List;
@RestController @RestController
@RequestMapping("/accounts") @RequestMapping("/accounts")
@RequiredArgsConstructor @RequiredArgsConstructor
@ -32,4 +34,24 @@ public class AccountsController {
return ResponseEntity.notFound().build(); return ResponseEntity.notFound().build();
} }
} }
@GetMapping
List<ResponseAccount> allAccounts() {
throw new UnsupportedOperationException("Not implemented");
}
@PostMapping
ResponseAccount registerAccount(@RequestParam String username, @RequestParam String password, @RequestParam String permissions) {
throw new UnsupportedOperationException("Not implemented");
}
@PutMapping("/{accountId}")
ResponseEntity<?> updatePermissions(@PathVariable String accountId, @RequestParam String permissions) {
throw new UnsupportedOperationException("Not implemented");
}
@DeleteMapping("/{accountId}")
ResponseEntity<?> removeAccount(@PathVariable String accountId) {
throw new UnsupportedOperationException("Not implemented");
}
} }