Actions
Subtask #46160
closedFeature #40907: mgr/dashboard: REST API improvements
Bug #44013: mgr/dashboard: current REST API flaws
Address API inconsistencies in cephfs endpoint
% Done:
50%
Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Description
Verbs in endpoints:
GET /cephfs/{fs_id}/get_quotas vs. the existing GET /rgw/user/{uid}/quota. Same for CephFS set_quota.
- Match the quota functionality in CephFS which currently uses two GET requests with rgw, which uses GET and POST appropriately.
Resources hidden in query params: REST APIs are great for exposing hierarchical resources, but Dashboard CephFS API has missed the chance to expose the CephFS filesystem hierarchy:
- for making a new dir it requires POST /cephfs/{fs_id}/mk_dirs, body: {path: '/dira/dirb/...}, when it'd be preferred the following POST /cephfs/{fs_id}/dira/dirb, body: {name: 'dirC', type: 'dir'}
HTTP Verbs are wrongly used (POST is used for everything):
POST /cephfs/{fs_id}/rm_dir vs DELETE /cephfs/{fs_id}/dirA/dirB/dir_to_delete.
Updated by Anonymous almost 4 years ago
- Subject changed from Address API inconsistency with cephfs to Address API inconsistencies
Updated by Anonymous almost 4 years ago
- Subject changed from Address API inconsistencies to Address API inconsistencies in cephfs endpoint
Updated by Lenz Grimmer over 3 years ago
- Status changed from In Progress to Resolved
Actions