https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39190
--- Comment #164 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 185997 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=185997&action=edit Bug 39190: Rename API from sftp_servers to file_transports This patch renames the entire API structure from SFTP-specific to generic file transport terminology to reflect the polymorphic nature of the system. API Changes: - Endpoints: /config/sftp_servers -> /config/file_transports - Parameters: sftp_server_id -> file_transport_id - Definitions: sftp_server -> file_transport - Controller: Config::SFTP::Servers -> Config::File::Transports File Changes: - api/v1/swagger/definitions/sftp_server.yaml -> file_transport.yaml - api/v1/swagger/paths/config_sftp_servers.yaml -> config_file_transports.yaml - Koha/REST/V1/Config/SFTP/Servers.pm -> Koha/REST/V1/Config/File/Transports.pm - t/db_dependent/api/v1/sftp_servers.t -> file_transports.t Updated References: - swagger.yaml: paths, definitions, parameters, tags - Template JavaScript: API URLs and variable names - Controller: package name, variable names, error messages - Tests: endpoints, parameters, descriptions - API mapping: to_api_mapping field name correction To test: 1. Apply this patch 2. Run: yarn api:bundle (to regenerate swagger bundle) 3. Run: prove t/db_dependent/api/v1/file_transports.t 4. All API tests should pass 5. Verify admin interface uses new API endpoints 6. Test CRUD operations work correctly The API now consistently uses 'file_transports' terminology matching the polymorphic file transport system that supports FTP, SFTP, and future transport types. Signed-off-by: Tomas Cohen Arazi <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
