JingsongLi opened a new pull request, #9838:
URL: https://github.com/apache/paimon/pull/9838

   ### Purpose
   
   Add a generic REST API for attaching string labels to existing catalog 
entities. All entity types use the same `/v1/{prefix}/labels` endpoint family:
   
   - `POST /labels` creates or replaces one binding identified by entity type, 
canonical entity name, and key.
   - `GET /labels/{entityType}/{entityName}` lists direct bindings with 
pagination.
   - `GET` and `DELETE /labels/{entityType}/{entityName}/{key}` read or 
idempotently remove one binding.
   
   This change adds the Java client methods, request/response models, 
Management OpenAPI contract, and usage documentation. The client preserves 
provider-defined entity names and encodes each path parameter separately. 
Catalog servers remain responsible for entity resolution, authorization, and 
atomic persistence.
   
   ### Tests
   
   - `mvn -pl paimon-api -DwildcardSuites=none test` — 207 tests passed on JDK 
8, including 11 label HTTP contract tests and shaded/external Jackson 
compatibility checks.
   - `node docs/scripts/validate-rest-openapi.js` — both REST specifications 
passed validation.
   - `git diff --check` — passed.
   
   Label tests cover a single POST per upsert, shared routes for 
table/column/provider-defined types, URL encoding including dot-only segments, 
pagination, repeated deletion, input validation, and error propagation.
   


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