class WarpEngine::Api::SoftwareFacetsController
Counts for the catalogโs filter values.
Public Instance Methods
Source
# File app/controllers/warp_engine/api/software_facets_controller.rb, line 33 def show render json: WarpEngine::SoftwareService.new.facets( subject: current_subject, owner_id: params[:owner_id], statuses: params[:status].to_s.split(",").map(&:strip).reject(&:blank?), platform: params[:platform].presence, category: params[:category].presence, query: params[:q].presence ) end
GET /api/software/facets.
Takes the filters of GET /api/software and renders WarpEngine::SoftwareService#facets: the total matching every filter and, per status, platform and category, how many softwares that value would show given the other filters.