blob: 260e53c34a2686df347050654eeee403a97d30b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require_relative "../chef_data/data_normalizer"
module ChefZero
module Endpoints
# /organizations/ORG/policies/NAME/revisions
class PolicyRevisionsEndpoint < RestBase
# POST /organizations/ORG/policies/NAME/revisions
def post(request)
policyfile_data = parse_json(request.body)
create_data(request, request.rest_path, policyfile_data["revision_id"], request.body, :create_dir)
already_json_response(201, request.body)
end
end
end
end
|