1. Add API of getting SC metrics. 2. Modify response body of the API of listing all PVCs of a SC
This commit is contained in:
@@ -11,4 +11,9 @@ func Register(ws *restful.WebService, subPath string) {
|
||||
To(models.GetPvcListBySc).Filter(route.RouteLogging)).
|
||||
Consumes(restful.MIME_JSON, restful.MIME_XML).
|
||||
Produces(restful.MIME_JSON)
|
||||
|
||||
ws.Route(ws.GET(subPath+"/storageclasses/{storageclass}/metrics").
|
||||
To(models.GetScMetrics).Filter(route.RouteLogging)).
|
||||
Consumes(restful.MIME_JSON, restful.MIME_XML).
|
||||
Produces(restful.MIME_JSON)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user