Class: TwoPercent::ScimController

Inherits:
ApplicationController show all
Defined in:
app/controllers/two_percent/scim_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#authenticate

Instance Method Details

#createObject



5
6
7
8
9
# File 'app/controllers/two_percent/scim_controller.rb', line 5

def create
  TwoPercent::CreateEvent.create(resource: params[:resource_type], params: scim_params)

  head :ok
end

#destroyObject



23
24
25
26
27
# File 'app/controllers/two_percent/scim_controller.rb', line 23

def destroy
  TwoPercent::DeleteEvent.create(resource: params[:resource_type], id: params[:id])

  head :ok
end

#replaceObject



17
18
19
20
21
# File 'app/controllers/two_percent/scim_controller.rb', line 17

def replace
  TwoPercent::ReplaceEvent.create(resource: params[:resource_type], id: params[:id], params: scim_params)

  head :ok
end

#updateObject



11
12
13
14
15
# File 'app/controllers/two_percent/scim_controller.rb', line 11

def update
  TwoPercent::UpdateEvent.create(resource: params[:resource_type], id: params[:id], params: scim_params)

  head :ok
end