summaryrefslogtreecommitdiff
path: root/lib/chef_zero/server.rb
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-12-04 16:05:31 -0800
committerChris Doherty <cdoherty@chef.io>2015-12-07 14:33:18 -0800
commit7ad8a34c9b1100a932374a12e567c7d077622e48 (patch)
tree10812f7217e26e65f02bf37761b5baacee50d905 /lib/chef_zero/server.rb
parent82407750aa4b872c73baeae8afce42465b870a48 (diff)
downloadchef-zero-7ad8a34c9b1100a932374a12e567c7d077622e48.tar.gz
Split policy endpoints into separate endpoints
Diffstat (limited to 'lib/chef_zero/server.rb')
-rw-r--r--lib/chef_zero/server.rb23
1 files changed, 14 insertions, 9 deletions
diff --git a/lib/chef_zero/server.rb b/lib/chef_zero/server.rb
index e882369..2d84a52 100644
--- a/lib/chef_zero/server.rb
+++ b/lib/chef_zero/server.rb
@@ -69,11 +69,16 @@ require 'chef_zero/endpoints/organization_endpoint'
require 'chef_zero/endpoints/organization_association_requests_endpoint'
require 'chef_zero/endpoints/organization_association_request_endpoint'
require 'chef_zero/endpoints/organization_authenticate_user_endpoint'
-require 'chef_zero/endpoints/organization_policies_endpoint'
-require 'chef_zero/endpoints/organization_policy_groups_endpoint'
require 'chef_zero/endpoints/organization_users_endpoint'
require 'chef_zero/endpoints/organization_user_endpoint'
require 'chef_zero/endpoints/organization_validator_key_endpoint'
+require 'chef_zero/endpoints/policies_endpoint'
+require 'chef_zero/endpoints/policy_endpoint'
+require 'chef_zero/endpoints/policy_revisions_endpoint'
+require 'chef_zero/endpoints/policy_revision_endpoint'
+require 'chef_zero/endpoints/policy_groups_endpoint'
+require 'chef_zero/endpoints/policy_group_endpoint'
+require 'chef_zero/endpoints/policy_group_policy_endpoint'
require 'chef_zero/endpoints/principal_endpoint'
require 'chef_zero/endpoints/role_endpoint'
require 'chef_zero/endpoints/role_environments_endpoint'
@@ -567,13 +572,13 @@ module ChefZero
[ "/organizations/*/nodes", NodesEndpoint.new(self) ],
[ "/organizations/*/nodes/*", NodeEndpoint.new(self) ],
[ "/organizations/*/nodes/*/_identifiers", NodeIdentifiersEndpoint.new(self) ],
- [ "/organizations/*/policies", OrganizationPoliciesEndpoint.new(self) ],
- [ "/organizations/*/policies/*", OrganizationPoliciesEndpoint.new(self) ],
- [ "/organizations/*/policies/*/revisions", OrganizationPoliciesEndpoint.new(self) ],
- [ "/organizations/*/policies/*/revisions/*", OrganizationPoliciesEndpoint.new(self) ],
- [ "/organizations/*/policy_groups", OrganizationPolicyGroupsEndpoint.new(self) ],
- [ "/organizations/*/policy_groups/*", OrganizationPolicyGroupsEndpoint.new(self) ],
- [ "/organizations/*/policy_groups/*/policies/*", OrganizationPolicyGroupsEndpoint.new(self) ],
+ [ "/organizations/*/policies", PoliciesEndpoint.new(self) ],
+ [ "/organizations/*/policies/*", PolicyEndpoint.new(self) ],
+ [ "/organizations/*/policies/*/revisions", PolicyRevisionsEndpoint.new(self) ],
+ [ "/organizations/*/policies/*/revisions/*", PolicyRevisionEndpoint.new(self) ],
+ [ "/organizations/*/policy_groups", PolicyGroupsEndpoint.new(self) ],
+ [ "/organizations/*/policy_groups/*", PolicyGroupEndpoint.new(self) ],
+ [ "/organizations/*/policy_groups/*/policies/*", PolicyGroupPolicyEndpoint.new(self) ],
[ "/organizations/*/principals/*", PrincipalEndpoint.new(self) ],
[ "/organizations/*/roles", RestListEndpoint.new(self) ],
[ "/organizations/*/roles/*", RoleEndpoint.new(self) ],