davsclaus opened a new pull request, #31273: URL: https://github.com/apache/camel/pull/31273
_Claude Code on behalf of Claus Ibsen_ Part of [CAMEL-27980](https://issues.apache.org/jira/browse/CAMEL-27980), item 1 (follow-up of #31249). ## What The catalog had 457 API methods and 782 API parameters with an empty description (twilio, zendesk, braintree, google-mail), and many texts taken from SDK Javadoc were wrong, vague, cut off or full of Javadoc/markdown leftovers. This PR fills and improves them with `src/main/api-descriptions.properties` files in all 13 API components, checked against the SDK sources and the vendor API references. Catalog now: 0 empty method or parameter descriptions. ### Plugin (`camel-api-component-maven-plugin`) - A key in `api-descriptions.properties` now **wins over the Javadoc** of the SDK, so wrong, too short or vague texts can be corrected and Camel-specific facts added (before, the file only filled empty texts). - The method name was taken after the *first* space of the signature, so for a return type such as `Result<? extends PaymentMethod>` (braintree `paymentMethod`) the Javadoc and file texts were not found. Fixed in `AbstractApiMethodGeneratorMojo` and `JavaSourceApiMethodGeneratorMojo`. Test added (`ApiJavaSourceComponentGeneratorMojoTest#testDescriptionsFile`, `TestProxy#greetList`). ### Texts (keys per component) | Component | Keys | What | |---|---|---| | zendesk | 609 | all methods/params (SDK has little Javadoc); overload texts fixed; deprecated/unsupported calls marked | | twilio | 236 | all methods/params (SDK has no Javadoc); readers read all pages; optional fields set as `CamelTwilio.<name>` headers named; `RAW(+30)` for triggerValue | | braintree | 141 | missing texts + bad Javadoc overridden; oauth methods say they need a client ID/secret the component cannot configure | | google-drive | 73 | cut texts, accepted values/defaults; `alt=media`, `fields` header, one page per call | | google-calendar | 53 | cut texts, deprecated options, patch vs update, defaults | | google-mail | 39 | `drafts.update` id (SDK Javadoc glued it into userId), userId, defaults | | google-sheets | 29 | markdown leftovers, by-data-filter texts, valueInputOption | | box | 21 | vague texts, what methods really return | | as2 | 17 | sign/compress/encrypt parameters depend on as2MessageStructure, MDN, defaults | | olingo2 / olingo4 | 7 / 3 | ETag If-Match, MERGE not in OData 4, batch not atomic | | dhis2 / fhir | 5 / 2 | how resources are sent, paging, extraParameters types | Also the ValueInputOption section of `google-sheets-component.adoc` said "many APIs" need the header; it is `data/append` and `data/update` only. Regeneration: the generated `*EndpointConfiguration.java`, the component JSON and its catalog copy. A build of the plugin and all 13 components from this branch changes nothing. Bugs found on the way are not fixed here; they go into separate JIRAs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_016Y4dDhew8iuyqNH37V5FiU -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
