def get(request)
      start = Integer(request.query_params['start'] || 0)
      items = Integer(request.query_params['items'] || 10)
      cookbooks = store.cookbooks[start...items] || []

      respond({
        'items' => cookbooks.collect { |cookbook|
          {
            'cookbook_name'        => cookbook.name,
            'cookbook_description' => cookbook.description,
            'cookbook'             => url_for(cookbook),
            'cookbook_maintainer'  => cookbook.maintainer
          }
        },
        'total' => store.size,
        'start' => start.to_i,
      })
    end
def get(request)
      start = Integer(request.query_params['start'] || 0)
      items = Integer(request.query_params['items'] || 10)
      cookbooks = store.cookbooks[start...items] || []

      respond({
        'items' => cookbooks.collect { |cookbook|
          {
            'cookbook_name'        => cookbook.name,
            'cookbook_description' => cookbook.description,
            'cookbook'             => url_for(cookbook),
            'cookbook_maintainer'  => cookbook.maintainer
          }
        },
        'total' => store.size,
        'start' => start.to_i,
      })
    end
GET /cookbooks