Commit b596737972530680cbcb57bfa98543b1b5257781
1 parent
73794eb9
Exists in
master
test index route
Showing
4 changed files
with
29 additions
and
3 deletions
Show diff stats
Gemfile.lock
app/controllers/scim_rails/application_controller.rb
@@ -0,0 +1,26 @@ | @@ -0,0 +1,26 @@ | ||
1 | +module ScimRails | ||
2 | + class ScimUsersController < ApplicationController | ||
3 | + def index | ||
4 | + @users = User.last | ||
5 | + scim_response(@users) | ||
6 | + end | ||
7 | + | ||
8 | + def create | ||
9 | + end | ||
10 | + | ||
11 | + def show | ||
12 | + end | ||
13 | + | ||
14 | + def update | ||
15 | + end | ||
16 | + | ||
17 | + def deprovision | ||
18 | + end | ||
19 | + | ||
20 | + private | ||
21 | + | ||
22 | + def scim_response(object, status = :ok) | ||
23 | + render(json: object, status: status) | ||
24 | + end | ||
25 | + end | ||
26 | +end |
lib/scim_rails/version.rb