thecore_api 1.1.11 → 1.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/api/v1/info_controller.rb +6 -0
- data/config/routes.rb +1 -2
- data/lib/thecore_api/version.rb +1 -1
- metadata +1 -2
- data/app/controllers/api/v1/roles_controller.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e1420fa3beca223106c2b4ede934d6d2fef1f84
|
4
|
+
data.tar.gz: 8d304ae8325dcb70dfb6a2678b9680a8137e82d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e248e0b771c04b9a50a602bdc9f4640a6ed82dd0502593aabb1036c28b0635df138877ff1dd57feb6d5882ceecc55478c5261e6a5ba4ba0512890fb50f1a6bf
|
7
|
+
data.tar.gz: 12f4ae59e849045843db51a3eb502d4b2fa12f1eb0c97e47459b9f1d5ba53b527aa07d75a775ccdf6709b131490ec4a6163dd7ff6b4d46f087f29bf0b14413f6
|
@@ -23,6 +23,12 @@ class Api::V1::InfoController < Api::V1::BaseController
|
|
23
23
|
}.to_json, status: 200
|
24
24
|
end
|
25
25
|
|
26
|
+
# api :GET, '/api/v1/info/roles', "Given auth token,
|
27
|
+
# it returns the roles list
|
28
|
+
def roles
|
29
|
+
render json: ROLES.to_json, status: 200
|
30
|
+
end
|
31
|
+
|
26
32
|
private
|
27
33
|
|
28
34
|
# Method overridden because the first time I have to ask for the token
|
data/config/routes.rb
CHANGED
@@ -11,10 +11,9 @@ Rails.application.routes.draw do
|
|
11
11
|
namespace :info do
|
12
12
|
get :version
|
13
13
|
get :token
|
14
|
+
get :roles
|
14
15
|
end
|
15
16
|
|
16
|
-
resources :roles, only: [:index]
|
17
|
-
|
18
17
|
resources :users, only: [:index, :create, :show, :update, :destroy] do
|
19
18
|
match 'search' => 'users#search', via: [:get, :post], as: :search, on: :collection
|
20
19
|
end
|
data/lib/thecore_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
@@ -91,7 +91,6 @@ files:
|
|
91
91
|
- Rakefile
|
92
92
|
- app/controllers/api/v1/base_controller.rb
|
93
93
|
- app/controllers/api/v1/info_controller.rb
|
94
|
-
- app/controllers/api/v1/roles_controller.rb
|
95
94
|
- app/controllers/api/v1/sessions_controller.rb
|
96
95
|
- app/controllers/api/v1/users_controller.rb
|
97
96
|
- config/initializers/wrap_parameters.rb
|