json.array!(@commands) do |command|
  json.extract! command, :id, :aps, :commands
  json.url command_url(command, format: :json)
end
