Method: Orchestrator::Api::SystemsController#count
- Defined in:
- app/controllers/orchestrator/api/systems_controller.rb
#count ⇒ Object
return the count of a module type in a system
185 186 187 188 189 190 191 192 193 194 |
# File 'app/controllers/orchestrator/api/systems_controller.rb', line 185 def count params.require(:module) sys = System.get(id) if sys mod = params.permit(:module)[:module] render json: {count: sys.count(mod)} else render nothing: true, status: :not_found end end |