Class: ScimEngine::SchemasController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ScimEngine::SchemasController
- Defined in:
- app/controllers/scim_engine/schemas_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/scim_engine/schemas_controller.rb', line 5 def index schemas = ScimEngine::Engine.schemas schemas_by_id = schemas.reduce({}) do |hash, schema| hash[schema.id] = schema hash end render json: schemas_by_id[params[:name]] || schemas end |