Skip to content

feat: databases get/list via get_databases (with database_login filter) - #55

Merged
chmmou merged 1 commit into
mainfrom
feature/databases-read
May 8, 2026
Merged

feat: databases get/list via get_databases (with database_login filter)#55
chmmou merged 1 commit into
mainfrom
feature/databases-read

Conversation

@chmmou

@chmmou chmmou commented May 8, 2026

Copy link
Copy Markdown
Owner

Summary

Adds internal/database read module and the kasapi-cli databases list|get subcommand tree wrapping get_databases. The get form reuses the same endpoint with a database_login filter and unwraps the single-entry array, mirroring the existing mail-accounts / accounts pattern. List/singular share one struct; database_password is 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.

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.
@chmmou
chmmou merged commit 3cecfc0 into main May 8, 2026
1 check passed
@chmmou
chmmou deleted the feature/databases-read branch May 8, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant