class ChefZero::Endpoints::PolicyRevisionEndpoint
/organizations/ORG/policies/NAME/revisions/REVISION
Public Instance Methods
delete(request)
click to toggle source
DELETE /organizations/ORG/policies/NAME/revisions/REVISION
# File lib/chef_zero/endpoints/policy_revision_endpoint.rb, line 15 def delete(request) policyfile_data = parse_json(get_data(request)) policyfile_data = ChefData::DataNormalizer.normalize_policy(policyfile_data, request.rest_path[3], request.rest_path[5]) delete_data(request) json_response(200, policyfile_data) end
get(request)
click to toggle source
GET /organizations/ORG/policies/NAME/revisions/REVISION
# File lib/chef_zero/endpoints/policy_revision_endpoint.rb, line 8 def get(request) data = parse_json(get_data(request)) data = ChefData::DataNormalizer.normalize_policy(data, request.rest_path[3], request.rest_path[5]) json_response(200, data) end