Project

General

Profile

« Previous | Next » 

Revision bb3916d6

Added by Ohad Levy over 10 years ago

fixes #3566 - exposes orchestration tasks via the API at /api/orchestration/id/tasks

View differences:

app/controllers/api/base_controller.rb
protected
def not_found
render_error 'not_found', :status => :not_found and return false
end
def process_resource_error(options = { })
resource = options[:resource] || get_resource
......
if resource
return instance_variable_set(:"@#{resource_name}", resource)
else
render_error 'not_found', :status => :not_found and return false
not_found
end
end
......
def find_required_nested_object
find_nested_object
return @nested_obj if @nested_obj
render_error 'not_found', :status => :not_found and return false
not_found
end
def find_optional_nested_object

Also available in: Unified diff