You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "SteNicholas (via GitHub)" <gi...@apache.org> on 2024/07/15 10:34:08 UTC
Re: [PR] [CELEBORN-1477][CIP-9][FOLLOWUP] User guide for `/api/v1` migration [celeborn]
SteNicholas commented on code in PR #2618:
URL: https://github.com/apache/celeborn/pull/2618#discussion_r1677621840
##########
docs/migration.md:
##########
@@ -21,6 +21,53 @@ license: |
# Migration Guide
+# Upgrading from 0.5 to 0.6
+-
+- Since 0.6.0, Celeborn has introduced a new RESTful API namespace: /api/v1, which uses the application/json media type for requests and responses.
+ The `celeborn-openapi-client` SDK is also available to help users interact with the new RESTful APIs.
+ The legacy RESTful APIs have been deprecated and will be removed in future releases.
+ Access the full [RESTful API documentation](./webapi.md) for detailed information.
+
+ - The mappings of the old RESTful APIs to the new RESTful APIs for Master.
+
+ | Old RESTful API | New RESTful API | Note |
+ |--------------------------|------------------------------------------|--------------------------------------------------|
+ | GET /conf | GET /api/v1/conf | |
+ | GET /listDynamicConfigs | GET /api/v1/conf/dynamic | |
+ | GET /threadDump | GET /api/v1/conf/thread_dump | |
+ | GET /applications | GET /api/v1/applications | |
+ | GET /listTopDiskUsedApps | GET /api/v1/applications/top_disk_usages | |
+ | GET /hostnames | GET /api/v1/applications/hostnames | |
+ | GET /shuffle | GET /api/v1/shuffles | |
+ | GET /masterGroupInfo | GET /api/v1/masters | |
+ | GET /workerInfo | GET /api/v1/workers | |
+ | GET /lostWorkers | GET /api/v1/workers | get the lostWorkers field in response |
+ | GET /excludedWorkers | GET /api/v1/workers | get the excludedWorkers field in response |
+ | GET /shutdownWorkers | GET /api/v1/workers | get the shutdownWorkers filed in response |
+ | GET /decommissionWorkers | GET /api/v1/workers | get the decommissioningWorkers filed in response |
+ | POST /exclude | POST /api/v1/workers/exclude | |
+ | GET /workerEventInfo | GET /api/v1/workers/events | |
+ | POST /sendWorkerEvent | POST /api/v1/workers/events | |
Review Comment:
```suggestion
| POST /sendWorkerEvent | POST /api/v1/workers/events | the `type` parameter changed to `eventType` |
```
--
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: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org