class ChefZero::Endpoints::OrganizationUserKeyEndpoint

GET /organizations/ORG/users/USER/keys/NAME

Public Instance Methods

get(request) click to toggle source
# File lib/chef_zero/endpoints/organization_user_key_endpoint.rb, line 8
def get(request)
  # 404 if not a member of the org
  get_data(request, request.rest_path[0..3])
  # Just use the /users/USER/keys endpoint
  request.rest_path = request.rest_path[2..-1]
  ActorKeyEndpoint.new(server).get(request)
end