"ROLE_PERMISSION": "k8sclusters:id:"
}
},
+ "vca": {"METHODS": ("GET", "POST"),
+ "ROLE_PERMISSION": "vca:",
+ "<ID>": {"METHODS": ("GET", "DELETE", "PATCH"),
+ "ROLE_PERMISSION": "vca:id:"
+ }
+ },
"k8srepos": {"METHODS": ("GET", "POST"),
"ROLE_PERMISSION": "k8srepos:",
"<ID>": {"METHODS": ("GET", "DELETE"),
if accept:
if "text/html" in accept:
return html.format(data, cherrypy.request, cherrypy.response, token_info)
- elif "application/yaml" in accept or "*/*" in accept or "text/plain" in accept:
+ elif "application/yaml" in accept or "*/*" in accept:
pass
elif "application/json" in accept or (cherrypy.response.status and cherrypy.response.status >= 300):
cherrypy.response.headers["Content-Type"] = 'application/json; charset=utf-8'