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 +4 -4
- data/config/routes.rb +45 -42
- data/lib/model_driven_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6355671a58c563bf10480491a193f8d0f3777a87aeda572ce8cd5aef9202ee71
|
4
|
+
data.tar.gz: fc2dc537d4da4cba5fec9979ccf480bad7d8a1c28fefc8e3c23716c8363f0dca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
|
22
|
-
|
23
|
-
|
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
|
-
|
26
|
-
|
23
|
+
namespace :raw do
|
24
|
+
post :sql
|
25
|
+
end
|
27
26
|
|
28
|
-
|
29
|
-
|
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
|
-
|
50
|
-
|
51
|
-
|
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
|
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.
|
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-
|
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
|