model_driven_api 3.2.6 → 3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b97e79e1bc34847a05fd1c9ac004c0f64d15203b2a803d176559bfdcc2b3cf4e
4
- data.tar.gz: 6c48764ef66785db7b5793bd0bde4526233f39ae10650ec76c98799f0ac5efef
3
+ metadata.gz: 6355671a58c563bf10480491a193f8d0f3777a87aeda572ce8cd5aef9202ee71
4
+ data.tar.gz: fc2dc537d4da4cba5fec9979ccf480bad7d8a1c28fefc8e3c23716c8363f0dca
5
5
  SHA512:
6
- metadata.gz: 925b9065f28afcfa64652a4262eccf1ad59f829c153f8b9950653331857c9020649633be0590e18c7acfe29aafa06118c839cbbce3e993085c77f98d4d7c4e59
7
- data.tar.gz: 2ae0d12d73b4c23113d0f98d1829adf4e35ea8a29fa0370d7d7fdd0f8fae5fe3dfcbfab33a7bbd6e0b6a97b9e5a9c431bdcdef403114b2f1846d06a50f701fc9
6
+ metadata.gz: 168b2156b31846474aea51786fd2adb19c421b80898ada6a6d58f08a1a29c7dcd864eb96e08a087bae9272032c96cf7a4238d4075d030238e65a9231488e29fb
7
+ data.tar.gz: 3e572dd6a73561db3d595c29ecb9ae817afd54715418fe1ea666bee383ede1c97f6bb0642e76fdd2927015487bb0efe37afd526ff6cd94aa4036fff655ce6b3f
data/config/routes.rb CHANGED
@@ -2,53 +2,56 @@
2
2
 
3
3
  Rails.application.routes.draw do
4
4
  # REST API (Stateless)
5
- namespace :api, constraints: { format: :json } do
6
- namespace :v2 do
7
- resources :users
8
5
 
9
- namespace :info do
10
- get :version
11
- get :roles
12
- get :translations
13
- get :schema
14
- get :dsl
15
- get :heartbeat
16
- get :settings
17
- get :swagger
18
- get :openapi
19
- end
6
+ scope ENV.fetch("RAILS_RELATIVE_URL_ROOT", "/") do
7
+ namespace :api, constraints: { format: :json } do
8
+ namespace :v2 do
9
+ resources :users
20
10
 
21
- namespace :raw do
22
- post :sql
23
- end
11
+ namespace :info do
12
+ get :version
13
+ get :roles
14
+ get :translations
15
+ get :schema
16
+ get :dsl
17
+ get :heartbeat
18
+ get :settings
19
+ get :swagger
20
+ get :openapi
21
+ end
24
22
 
25
- post "authenticate" => "authentication#authenticate"
26
- post ":ctrl/search" => 'application#index'
23
+ namespace :raw do
24
+ post :sql
25
+ end
27
26
 
28
- # Add a route with placeholders for custom actions, the custom actions routes have a form like: :ctrl/custom_action/:action_name or :ctrl/custom_action/:action_name/:id
29
- # Can have all the verbs, but the most common are: get, post, put, delete
30
- get ":ctrl/custom_action/:action_name", to: 'application#index'
31
- get ":ctrl/custom_action/:action_name/:id", to: 'application#show'
32
- post ":ctrl/custom_action/:action_name", to: 'application#create'
33
- put ":ctrl/custom_action/:action_name/:id", to: 'application#update'
34
- patch ":ctrl/custom_action/:action_name/:id", to: 'application#update'
35
- delete ":ctrl/custom_action/:action_name/:id", to: 'application#destroy'
36
- # Catchall routes
37
- # # CRUD Show
38
- get '*path/:id', to: 'application#show'
39
- # # CRUD Index
40
- get '*path', to: 'application#index'
41
- # # CRUD Create
42
- post '*path', to: 'application#create'
43
- # CRUD Update
44
- put '*path/:id/multi', to: 'application#update_multi'
45
- patch '*path/:id/multi', to: 'application#update_multi'
46
- put '*path/:id', to: 'application#update'
47
- patch '*path/:id', to: 'application#patch'
27
+ post "authenticate" => "authentication#authenticate"
28
+ post ":ctrl/search" => 'application#index'
48
29
 
49
- # # CRUD Delete
50
- delete '*path/:id/multi', to: 'application#destroy_multi'
51
- delete '*path/:id', to: 'application#destroy'
30
+ # Add a route with placeholders for custom actions, the custom actions routes have a form like: :ctrl/custom_action/:action_name or :ctrl/custom_action/:action_name/:id
31
+ # Can have all the verbs, but the most common are: get, post, put, delete
32
+ get ":ctrl/custom_action/:action_name", to: 'application#index'
33
+ get ":ctrl/custom_action/:action_name/:id", to: 'application#show'
34
+ post ":ctrl/custom_action/:action_name", to: 'application#create'
35
+ put ":ctrl/custom_action/:action_name/:id", to: 'application#update'
36
+ patch ":ctrl/custom_action/:action_name/:id", to: 'application#update'
37
+ delete ":ctrl/custom_action/:action_name/:id", to: 'application#destroy'
38
+ # Catchall routes
39
+ # # CRUD Show
40
+ get '*path/:id', to: 'application#show'
41
+ # # CRUD Index
42
+ get '*path', to: 'application#index'
43
+ # # CRUD Create
44
+ post '*path', to: 'application#create'
45
+ # CRUD Update
46
+ put '*path/:id/multi', to: 'application#update_multi'
47
+ patch '*path/:id/multi', to: 'application#update_multi'
48
+ put '*path/:id', to: 'application#update'
49
+ patch '*path/:id', to: 'application#patch'
50
+
51
+ # # CRUD Delete
52
+ delete '*path/:id/multi', to: 'application#destroy_multi'
53
+ delete '*path/:id', to: 'application#destroy'
54
+ end
52
55
  end
53
56
  end
54
57
  end
@@ -1,3 +1,3 @@
1
1
  module ModelDrivenApi
2
- VERSION = "3.2.6".freeze
2
+ VERSION = "3.2.7".freeze
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_driven_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.6
4
+ version: 3.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-14 00:00:00.000000000 Z
10
+ date: 2025-01-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: thecore_backend_commons