davsclaus opened a new pull request, #27275:
URL: https://github.com/apache/camel/pull/27275

   Follow-up to #27168, as agreed in the review thread there (apupier asked for 
examples in all 3 DSLs).
   
   - Every Java example on the OData component page is now shown as `[tabs]` 
with Java, XML and canonical YAML: removing the inbound `Authorization` header, 
setting an `Authorization` header, ETags, fetching a collection, and reading, 
creating, updating and deleting an entity.
   - **Example fix:** the collection example used `split(body())`, but the 
response body is the parsed OData JSON object as a `Map`, so it split over the 
map entries. It now splits `${body[value]}`, which holds the entities, and the 
text says so.
   - The create and update examples now send a JSON `String` body (works in all 
three DSLs). The text explains that a `String` body is sent as is, and other 
bodies such as a `Map` are serialized to JSON.
   - Fixed the indentation of the Java chains and the JSON response sample, and 
regenerated the catalog copy of the page.
   
   Validated locally: `DocExamplesXmlSchemaTest` and 
`DocExamplesJavaImportsTest` (camel-catalog), `EipDocExamplesTest` 
(camel-yaml-dsl-validator), and `CatalogDocExamplesTest` and 
`CatalogDocJavaExamplesTest` (camel-jbang-core) all pass.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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]

Reply via email to