thecore_api 1.1.13 → 1.1.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e316b1323b5ae20d2e5f0475b8a12bfc7b73aa80
4
- data.tar.gz: 3a67ee93906c1b7af2cce7fec16ae45da3826b97
3
+ metadata.gz: 3621f57e53524e5b600f69c2ea2d3b2ee2a9de82
4
+ data.tar.gz: 269272c654cc23e5bdafaa8e8dba463c679021f8
5
5
  SHA512:
6
- metadata.gz: b37a18e203307e02b3d7332b1fc4da6c58b3911b1b928d7e75c0932cad7167d305ead0f00c9389180ea7584e2ba37eac5cb726fff508e97329fe16398691ebc9
7
- data.tar.gz: fcebff01c98eedd1813c20b6cf106dbac8b1c3da95fd6aa833ac22e286eb9ebdc46ba8856943391bb7323403cc2cd2a543b3d1c1c40e4a336139a8fea278e240
6
+ metadata.gz: fdadcd0e2f650c43ec49b20f2b9685216ff506e082ed06e61b5fd179889ff183b84338e89c52309cc6d583ef4288248b326a44862ccdb98a79c031614a942d06
7
+ data.tar.gz: fed93c2a6ed5f234ae933f8e71b331a229ce1da055fe3ebb32d3ecf05c76200a9d19421c9f17c845d2e59b44a40f80e08df9c17d9166c21cdec09fd3e6297136
@@ -19,9 +19,9 @@ class Api::V1::InfoController < Api::V1::BaseController
19
19
  }.to_json, status: 200
20
20
  end
21
21
 
22
- # api :GET, '/api/v1/info/roles', "Given auth token,
22
+ # api :GET, '/api/v1/info/available_roles', "Given auth credentials, in HTTP_BASIC form,
23
23
  # it returns the roles list
24
- def roles
24
+ def available_roles
25
25
  render json: ROLES.to_json, status: 200
26
26
  end
27
27
 
data/config/routes.rb CHANGED
@@ -11,7 +11,7 @@ Rails.application.routes.draw do
11
11
  namespace :info do
12
12
  get :version
13
13
  get :token
14
- get :roles
14
+ get :available_roles
15
15
  end
16
16
 
17
17
  resources :users, only: [:index, :create, :show, :update, :destroy] do
@@ -1,3 +1,3 @@
1
1
  module ThecoreApi
2
- VERSION = "1.1.13".freeze
2
+ VERSION = "1.1.14".freeze
3
3
  end
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.13
4
+ version: 1.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni