Prepared controllers
This commit is contained in:
parent
0a2c5d5789
commit
d0199bb8f0
@ -10,6 +10,8 @@ import ru.dragonestia.picker.api.model.account.ResponseAccount;
|
||||
import ru.dragonestia.picker.model.Account;
|
||||
import ru.dragonestia.picker.service.AccountService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/accounts")
|
||||
@RequiredArgsConstructor
|
||||
@ -32,4 +34,24 @@ public class AccountsController {
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user