Project

General

Profile

Subtask #46160

mgr - Feature #40907: mgr/dashboard: REST API improvements

Bug #44013: mgr/dashboard: current REST API flaws

Address API inconsistencies in cephfs endpoint

Added by Anonymous 10 months ago. Updated about 17 hours ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
dashboard/documentation
Target version:
% 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.

History

#1 Updated by Anonymous 10 months ago

  • Tracker changed from Bug to Subtask

#2 Updated by Anonymous 10 months ago

  • Subject changed from Address API inconsistency with cephfs to Address API inconsistencies

#3 Updated by Anonymous 10 months ago

  • Subject changed from Address API inconsistencies to Address API inconsistencies in cephfs endpoint

#4 Updated by Lenz Grimmer 8 months ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF