Moving API registration logic to generic api server

This commit is contained in:
nikhiljindal
2015-12-22 13:22:28 -08:00
parent 558f69e613
commit 87ce093c77
6 changed files with 232 additions and 170 deletions

View File

@@ -78,7 +78,7 @@ func (a *APIInstaller) Install(ws *restful.WebService) (apiResources []unversion
for _, path := range paths {
apiResource, err := a.registerResourceHandlers(path, a.group.Storage[path], ws, proxyHandler)
if err != nil {
errors = append(errors, err)
errors = append(errors, fmt.Errorf("error in registering resource: %s, %v", path, err))
}
if apiResource != nil {
apiResources = append(apiResources, *apiResource)