Project

General

Profile

Actions

Subtask #46181

closed

Feature #40907: mgr/dashboard: REST API improvements

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

Consolidate OSD mark endpoints

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

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Docs
Target version:
% Done:

70%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

We currently expose 191 different endpoints (only the /osd resource has 17, and that doesn't include the new ones for creating/deleting OSDs). This could be improved by aggregating endpoints (e.g.: /osd/{id}, body: {down, out, up, in, lost..} instead of /osd/{id}/mark_down, /osd/{id}/mark_out, /osd/{id}/mark_up, /osd/{id}/mark_in, /osd/{id}/mark_lost,...

This will also result in less redundant code to maintain and fix.

OSD mark endpoints will be consolidated into one endpoint.

Actions

Also available in: Atom PDF