Project

General

Profile

« Previous | Next » 

Revision 6f943886

Added by Joseph Magen over 10 years ago

fixes #3760 - API v2 define metadata @total for each controller

View differences:

app/controllers/api/v2/interfaces_controller.rb
def index
@interfaces = @nested_obj.interfaces.paginate(paginate_options)
@total = @nested_obj.interfaces.count
end
api :GET, '/hosts/:host_id/interfaces/:id', 'Show an interface for host'

Also available in: Unified diff