Project

General

Profile

Actions

Subtask #46160

closed

Feature #40907: mgr/dashboard: REST API improvements

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

Address API inconsistencies in cephfs endpoint

Added by Anonymous almost 4 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
Docs
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.

Actions #1

Updated by Anonymous almost 4 years ago

  • Tracker changed from Bug to Subtask
Actions #2

Updated by Anonymous almost 4 years ago

  • Subject changed from Address API inconsistency with cephfs to Address API inconsistencies
Actions #3

Updated by Anonymous almost 4 years ago

  • Subject changed from Address API inconsistencies to Address API inconsistencies in cephfs endpoint
Actions #4

Updated by Lenz Grimmer over 3 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF