feat: databases get/list via get_databases (with database_login filter) - #55
Merged
Conversation
Adds internal/database read module and `kasapi-cli databases list|get` subcommand tree wrapping `get_databases`. List returns the full DatabaseList; `get <database-login>` reuses the same endpoint with a database_login filter and unwraps the single-entry array, matching the mail accounts / accounts pattern. Mapping tests cover both fixtures (testdata/database/get_databases_response_success.xml, get_database_response_success.xml). Refs #11.
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/databaseread module and thekasapi-cli databases list|getsubcommand tree wrappingget_databases. Thegetform reuses the same endpoint with adatabase_loginfilter and unwraps the single-entry array, mirroring the existing mail-accounts / accounts pattern. List/singular share one struct;database_passwordis omitted from the table view (still available via--output=json|yaml).Mapping tests cover both fixtures (
testdata/database/get_databases_response_success.xml,get_database_response_success.xml).Refs #11.