Commit Graph

48 Commits

Author SHA1 Message Date
thischwa 0f1248d08b issue #9: Refactor recordGet to recordList for consistency across API methods, update related documentation, and revise impacted tests. 2026-01-06 20:35:50 +01:00
thischwa acf2a2fc3b issue #9: Add recordList method to CfDnsClient, update Zone-level fluent API, and implement tests for DNS record listing with optional type filters. 2026-01-06 20:14:05 +01:00
thischwa a221de4792 issue #9:
Change default behavior of `emptyResultThrowsException` to `false`, update `ResponseValidator` for improved handling of single and multiple results, and enhance test coverage and documentation.

Add Fluent API for DNS operations, update `README`, and refactor `CfDnsClient` for zone-level chaining.

Validate record type in `RecordEntity#build`, throw exception for invalid types, and add test coverage.

Refactor `RecordEntity#getSld` to handle `zoneName` cases, improve null safety, and enhance substring logic.

Refactor `RecordEntity` getter (`getName` → `getSld`) for clarity, improve string handling in batch processing, and enhance type safety in HTTP operations. Update tests and documentation accordingly.

Refactor `deleteRequest` and `patchRequest` to accept `responseType` parameter for improved flexibility. Extract methods for cleaning and processing batch DNS records.

Refactor API method names for consistency (`zoneListAll` → `zoneList`, `zoneInfo` → `zoneGet`, `sldListAll` → `recordList`, `sldInfo` → `recordGet`) and update related documentation and tests.
2026-01-06 13:19:19 +01:00
thischwa 1bfea09aa9 Refactor sldInfo to improve JavaDoc, split overloaded methods, and enhance exception handling. 2025-12-31 16:45:59 +01:00
thischwa dd586be9f4 fix formatting in PagingRequest#getPagingParams JavaDoc and reorder RecordEntity#getName method. 2025-12-31 13:38:32 +01:00
thischwa 77a584afb6 fix issue #8: Refactor sldInfo to support filtering by multiple record types. Adjust related methods, tests, and documentation accordingly. 2025-12-31 13:19:56 +01:00
thischwa c75f9d74ca fix #7: Refactor sldInfo to return a list of records, update related methods and tests accordingly. Improve logging and exception handling for batch DNS operations. 2025-12-30 15:34:55 +01:00
thischwa a965f21d6b Add batch DNS operations documentation and refine logging format in CfDnsClient. Extend tests for record creation and deletion. 2025-12-27 16:48:26 +01:00
thischwa 0eaca55e95 issue #5 - Update pom.xml version to 0.2.0-beta.1-SNAPSHOT, enhance logging, and refine DNS batch record processing method. 2025-12-25 20:43:31 +01:00
thischwa a5d7992391 Enhance code readability by improving comments, formatting, and aligning annotations across classes. 2025-12-25 14:43:54 +01:00
thischwa b4ce867efc issue #6 - ResponseResultInfo#Errors: wrong object structure
issue #5 - Add batch DNS record operations and refactor Cloudflare API client.
2025-12-25 14:27:18 +01:00
thischwa d9334ba10b Update Javadoc comment in RecordSingleResponse to reference RecordEntity 2025-08-18 18:32:33 +02:00
thischwa 949d6dfada Remove Javadoc profile and related GitLab CI configuration 2025-06-09 17:17:22 +02:00
thischwa 0e4d68d719 Update example IP address in Javadoc and adjust GitLab CI rules 2025-06-09 14:12:35 +02:00
thischwa f90c9a57fd Update example IP address in CfDnsClient Javadoc 2025-06-09 14:02:06 +02:00
thischwa cf11e065f8 Refactor GitLab CI stages and fix example IP address in CfDnsClient documentation 2025-06-09 13:36:06 +02:00
thischwa 3e8a8bf14b Refactor GitLab CI stages and fix example IP address in CfDnsClient documentation 2025-06-09 13:29:41 +02:00
thischwa 00bc33060c Refactor GitLab CI stages and fix example IP address in CfDnsClient documentation 2025-06-09 13:17:03 +02:00
thischwa df1893fdb9 Refactor GitLab CI stages and fix example IP address in CfDnsClient documentation 2025-06-09 13:13:25 +02:00
thischwa 555d365eb9 Refactor GitLab CI stages and fix example IP address in CfDnsClient documentation 2025-06-09 12:51:17 +02:00
thischwa 8c9ae0a7ff Fix Javadoc update commit message and adjust stage definition in GitLab CI pipeline 2025-06-09 12:31:05 +02:00
thischwa 2c567d70b5 just a test commit 2025-06-09 11:51:06 +02:00
thischwa a6d561657f just a test commit 2025-06-09 10:52:08 +02:00
thischwa eb404d7aac fix typo 2025-06-08 12:44:09 +02:00
thischwa ef77ce2781 Update README formatting and enhance Javadoc examples
Standardized README parameter formatting for consistency. Enhanced Javadoc in `CfDnsClient` with new example for creating subdomain records.
2025-06-08 11:35:03 +02:00
thischwa cb2bfda88d Removed obsolete constructors at the exceptions and Update Javadoc files with latest generated content. 2025-04-26 18:56:41 +02:00
thischwa a5f892b86a Refactor ResultInfo to use Java record
Replaced the ResultInfo class with a Java record for conciseness and immutability. Adjusted related validation logic and method calls to align with the new record structure. Minor updates to Javadoc documentation were also included.
2025-04-26 18:40:38 +02:00
thischwa 3efbe1eaae Update response handling logic in ResponseValidator
Refined the condition for exception handling based on 'emptyResultThrowsException' to clarify when exceptions are triggered versus returning empty results. Updated Javadoc output files to reflect the latest documentation changes.
2025-04-26 17:46:36 +02:00
thischwa 25855078f8 Add unit tests for ResponseValidator with Mockito integration
Introduced `ResponseValidatorTest` to comprehensively test the `ResponseValidator` class. Enhanced the project dependencies by updating JUnit to 5.12.2 and integrating Mockito with `mockito-junit-jupiter` 5.17.0 for mocking support. Clarified Javadoc for handling `RecordMultipleResponse` cases in `ResponseValidator`.
2025-04-26 11:38:05 +02:00
thischwa 697906a669 Refactor response handling with ResponseValidator class
Introduced a new ResponseValidator class to encapsulate response validation logic, improving code readability and maintainability. Updated CfDnsClient to delegate response validation to this new class. Adjusted tests to align with the refactor and ensure proper exception handling.
2025-04-25 18:56:35 +02:00
thischwa e33318e989 Update Javadoc generation timestamps
Regenerated Javadoc files with updated timestamps for consistency and accuracy. No functional or content changes have been made to the documentation.
2025-04-23 17:57:47 +02:00
thischwa 2e7fa7586a Update README with API version details and method categorization 2025-04-23 17:26:26 +02:00
thischwa d9ec4f8c44 Regenerate Javadoc files for consistency
Refactor record creation method to improve clarity

Renamed `recordCreate` to `recordCreateSld` to better align with its function of creating records specifically for SLDs. Updated relevant tests, documentation, and method references to use the new naming for consistency and improved readability
2025-04-23 16:33:04 +02:00
thischwa e0f9043389 Refactor constants and add private constructor in JsonConf.
Changed API_EMAIL and API_KEY to static final for proper constant usage. Added a private constructor in JsonConf to prevent instantiation, ensuring adherence to utility class design principles.
2025-04-21 14:16:24 +02:00
thischwa c1675d0fba Refactor response handling and centralize JSON configuration
Replaced direct fields in `AbstractResponse` with `ResponseResultInfo` for better encapsulation and consistency. Introduced `JsonConf` to provide a shared, reusable `ObjectMapper` configuration. Updated tests and logic to align with the refactored response structure, enhancing maintainability and readability.
2025-04-21 14:06:25 +02:00
thischwa af4e09f938 Refactor code documentation and improve UI accessibility
Updated JavaDocs for consistency and clarity, modified styling with CSS variables for better maintainability, and enhanced script functionality for interactivity. Minor localization changes and accessibility improvements made to the generated documentation.
2025-04-19 11:34:22 +02:00
thischwa 4902d0062a Improve logging and update dependencies
Enabled detailed logging for DNS record operations and adjusted log levels. Updated Maven dependencies, including httpclient5, logback, and added explicit SLF4J configurations. Minor changes to the logging configuration file and project structure for better test isolation.
2025-04-18 13:19:40 +02:00
thischwa 0e5b878e9f Refactor DNS record handling and add record creation method
Introduced `buildFqdn` utility to avoid redundancy in FQDN construction. Added `recordCreate` method for simpler record creation with specified parameters. Enhanced `recordDeleteTypeIfExists` to handle multiple record types and improved test cases for better clarity and consistency.
2025-04-18 11:49:24 +02:00
thischwa 807a080636 test commit 2025-04-16 07:52:36 +02:00
thischwa 65b5ebcdfb update docu because of obsolete api-token 2025-04-14 10:14:57 +02:00
thischwa 16a586c080 Refactor code for consistent formatting and style. 2025-04-14 09:50:35 +02:00
thischwa 97b7f8371a Refactor code style and add tests for exception handling
Adjusted code style to align with consistent brace formatting and removed the null/blank check for `baseUrl` in the constructor. Added unit tests to verify exception handling in `CfDnsClient` for null arguments.
2025-04-13 19:57:15 +02:00
thischwa 9e3e12a08b Refactor constructor to explicitly throw IllegalArgumentException
Updated the constructor in CfBasicHttpClient to include explicit throws for IllegalArgumentException. This enhances clarity and ensures the method signature reflects the potential for exceptions. Minor formatting adjustments were also made for improved code readability.
2025-04-13 19:27:21 +02:00
thischwa 34ea8e1b62 fixed issue #3 2025-04-13 17:33:50 +02:00
thischwa 08a5606da6 reduce code smells 2025-03-24 15:49:43 +01:00
thischwa fa5840999d Update Javadoc and example code for CfDnsClient
Regenerated all Javadoc files with updated timestamps and fixed an example snippet in `CfDnsClient` for consistent variable naming. This ensures updated documentation and code clarity.
2025-03-23 19:04:50 +01:00
thischwa e415dc1106 Refactor HTTP request methods and update Javadoc language.
Refactored HTTP request methods by removing explicit `responseType` parameters where possible and adjusting to specific response mapping needs. Additionally, updated Javadoc documentation language from German to English for consistency, improving clarity and accessibility.
2025-03-23 18:39:36 +01:00
thischwa c39e022e41 Initial commit 2025-03-23 12:12:53 +01:00