feat: ftpusers get/list via get_ftpusers (with ftp_login filter) - #57
Merged
Conversation
Adds internal/ftpuser read module and `kasapi-cli ftpusers list|get` subcommand tree wrapping get_ftpusers. List returns the full FTPUserList; `get <ftp-login>` reuses the same endpoint with an ftp_login filter and unwraps the single-entry array, matching the mail accounts / accounts / databases pattern. Both ftp_password and the legacy ftp_passwort key are kept on the struct so a JSON/YAML round-trip preserves the raw payload; both are omitted from the table view. Mapping tests cover the list, singular and empty-list fixtures (testdata/ftpuser/get_ftpusers_response_success.xml, get_ftpuser_response_success.xml, get_ftpuser_response_success_empty_list.xml). Refs #11.
This was referenced May 8, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
internal/ftpuserread module and thekasapi-cli ftpusers list|getsubcommand tree wrappingget_ftpusers. Thegetform reuses the same endpoint with anftp_loginfilter and unwraps the single-entry array, mirroring the mail accounts / accounts / databases pattern. List/singular share one struct; bothftp_passwordand the legacyftp_passwortkey are preserved for JSON/YAML round-trips and omitted from the table view.Mapping tests cover the list, singular and empty-list fixtures.
Refs #11.