bullet_train-api 1.4.1 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/api/v1/users/controller_base.rb +2 -2
- data/lib/bullet_train/api/version.rb +1 -1
- metadata +2 -12
- data/app/views/api/v2/open_api/shared/_paths.yaml.erb +0 -108
- data/app/views/api/v2/open_api/teams/_paths.yaml.erb +0 -55
- data/app/views/api/v2/open_api/users/_paths.yaml.erb +0 -55
- data/app/views/api/v2/platform/access_tokens/_access_token.json.jbuilder +0 -10
- data/app/views/api/v2/platform/access_tokens/index.json.jbuilder +0 -1
- data/app/views/api/v2/platform/access_tokens/show.json.jbuilder +0 -1
- data/app/views/api/v2/teams/index.json.jbuilder +0 -1
- data/app/views/api/v2/teams/show.json.jbuilder +0 -1
- data/app/views/api/v2/users/index.json.jbuilder +0 -1
- data/app/views/api/v2/users/show.json.jbuilder +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 745e87545a1a2abac9e17a593f85c1f8ac7119d7a2b1683ab285c05244e2c60b
|
4
|
+
data.tar.gz: bb4f10d86b661682f8b689b5617d1da78860140bf5e2b7c93dda886191d6863a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4554adc808af594302f514cf97aafcc05607c0c5b6488b76fc9f58958c3eaf162488a3cc5184c9b24b28c8753b891ecde00375aad2c64322e394aa138a9cbc1
|
7
|
+
data.tar.gz: d8e472c6f645147195a13118b7f69b90e8a931685bf8390b3b68e70e5030ae7fb31302fdfc4273d71258791e1478fd1f9a6f31cf5e6e43a35c75a58eef0f2387
|
@@ -5,12 +5,12 @@ module Api::V1::Users::ControllerBase
|
|
5
5
|
# Only allow a list of trusted parameters through.
|
6
6
|
def user_params
|
7
7
|
password_fields = [
|
8
|
+
:email,
|
8
9
|
:password,
|
9
10
|
:current_password,
|
10
11
|
:password_confirmation
|
11
12
|
]
|
12
13
|
general_fields = [
|
13
|
-
:email,
|
14
14
|
:first_name,
|
15
15
|
:last_name,
|
16
16
|
:time_zone,
|
@@ -23,7 +23,7 @@ module Api::V1::Users::ControllerBase
|
|
23
23
|
selected_fields = if params.is_a?(BulletTrain::Api::StrongParametersReporter)
|
24
24
|
password_fields + general_fields
|
25
25
|
else
|
26
|
-
(params["commit"] == t(".buttons.
|
26
|
+
(params["commit"] == t(".buttons.update_email_and_password")) ? password_fields : general_fields
|
27
27
|
end
|
28
28
|
|
29
29
|
strong_params = params.require(:user).permit(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -192,16 +192,6 @@ files:
|
|
192
192
|
- app/views/api/v1/teams/show.json.jbuilder
|
193
193
|
- app/views/api/v1/users/index.json.jbuilder
|
194
194
|
- app/views/api/v1/users/show.json.jbuilder
|
195
|
-
- app/views/api/v2/open_api/shared/_paths.yaml.erb
|
196
|
-
- app/views/api/v2/open_api/teams/_paths.yaml.erb
|
197
|
-
- app/views/api/v2/open_api/users/_paths.yaml.erb
|
198
|
-
- app/views/api/v2/platform/access_tokens/_access_token.json.jbuilder
|
199
|
-
- app/views/api/v2/platform/access_tokens/index.json.jbuilder
|
200
|
-
- app/views/api/v2/platform/access_tokens/show.json.jbuilder
|
201
|
-
- app/views/api/v2/teams/index.json.jbuilder
|
202
|
-
- app/views/api/v2/teams/show.json.jbuilder
|
203
|
-
- app/views/api/v2/users/index.json.jbuilder
|
204
|
-
- app/views/api/v2/users/show.json.jbuilder
|
205
195
|
- config/locales/en/api.en.yml
|
206
196
|
- config/locales/en/me.en.yml
|
207
197
|
- config/locales/en/platform/access_tokens.en.yml
|
@@ -1,108 +0,0 @@
|
|
1
|
-
<% except ||= [] %>
|
2
|
-
<% unless except.include?(:index) && except.include?(:create) %>
|
3
|
-
/scaffolding/absolutely_abstract/creative_concepts/{absolutely_abstract_creative_concept_id}/completely_concrete/tangible_things:
|
4
|
-
<% unless except.include?(:index) %>
|
5
|
-
get:
|
6
|
-
tags:
|
7
|
-
- "Scaffolding/Completely Concrete/Tangible Things"
|
8
|
-
summary: "List Tangible Things"
|
9
|
-
operationId: listScaffoldingCompletelyConcreteTangibleThings
|
10
|
-
parameters:
|
11
|
-
- name: absolutely_abstract_creative_concept_id
|
12
|
-
in: path
|
13
|
-
required: true
|
14
|
-
schema:
|
15
|
-
type: string
|
16
|
-
responses:
|
17
|
-
"404":
|
18
|
-
description: "Not Found"
|
19
|
-
"200":
|
20
|
-
description: "OK"
|
21
|
-
content:
|
22
|
-
application/json:
|
23
|
-
schema:
|
24
|
-
type: object
|
25
|
-
properties:
|
26
|
-
data:
|
27
|
-
type: array
|
28
|
-
items:
|
29
|
-
$ref: "#/components/schemas/ScaffoldingCompletelyConcreteTangibleThingAttributes"
|
30
|
-
has_more:
|
31
|
-
type: boolean
|
32
|
-
<% end %>
|
33
|
-
<% unless except.include?(:create) %>
|
34
|
-
post:
|
35
|
-
tags:
|
36
|
-
- "Scaffolding/Completely Concrete/Tangible Things"
|
37
|
-
summary: "Create Tangible Thing"
|
38
|
-
operationId: createScaffoldingCompletelyConcreteTangibleThings
|
39
|
-
parameters:
|
40
|
-
- name: absolutely_abstract_creative_concept_id
|
41
|
-
in: path
|
42
|
-
required: true
|
43
|
-
schema:
|
44
|
-
type: string
|
45
|
-
responses:
|
46
|
-
"404":
|
47
|
-
description: "Not Found"
|
48
|
-
"201":
|
49
|
-
description: "Created"
|
50
|
-
content:
|
51
|
-
application/json:
|
52
|
-
schema:
|
53
|
-
$ref: "#/components/schemas/ScaffoldingCompletelyConcreteTangibleThingParameters"
|
54
|
-
<% end %>
|
55
|
-
<% end %>
|
56
|
-
<% unless except.include?(:show) && except.include?(:update) && except.include?(:destroy) %>
|
57
|
-
/scaffolding/completely_concrete/tangible_things/{id}:
|
58
|
-
<% unless except.include?(:show) %>
|
59
|
-
get:
|
60
|
-
tags:
|
61
|
-
- "Scaffolding/Completely Concrete/Tangible Things"
|
62
|
-
summary: "Fetch Tangible Thing"
|
63
|
-
operationId: getScaffoldingCompletelyConcreteTangibleThings
|
64
|
-
parameters:
|
65
|
-
- $ref: "#/components/parameters/id"
|
66
|
-
responses:
|
67
|
-
"404":
|
68
|
-
description: "Not Found"
|
69
|
-
"200":
|
70
|
-
description: "OK"
|
71
|
-
content:
|
72
|
-
application/json:
|
73
|
-
schema:
|
74
|
-
$ref: "#/components/schemas/ScaffoldingCompletelyConcreteTangibleThingAttributes"
|
75
|
-
<% end %>
|
76
|
-
<% unless except.include?(:update) %>
|
77
|
-
put:
|
78
|
-
tags:
|
79
|
-
- "Scaffolding/Completely Concrete/Tangible Things"
|
80
|
-
summary: "Update Tangible Thing"
|
81
|
-
operationId: updateScaffoldingCompletelyConcreteTangibleThings
|
82
|
-
parameters:
|
83
|
-
- $ref: "#/components/parameters/id"
|
84
|
-
responses:
|
85
|
-
"404":
|
86
|
-
description: "Not Found"
|
87
|
-
"200":
|
88
|
-
description: "OK"
|
89
|
-
content:
|
90
|
-
application/json:
|
91
|
-
schema:
|
92
|
-
$ref: "#/components/schemas/ScaffoldingCompletelyConcreteTangibleThingParameters"
|
93
|
-
<% end %>
|
94
|
-
<% unless except.include?(:destroy) %>
|
95
|
-
delete:
|
96
|
-
tags:
|
97
|
-
- "Scaffolding/Completely Concrete/Tangible Things"
|
98
|
-
summary: "Remove Tangible Thing"
|
99
|
-
operationId: removeScaffoldingCompletelyConcreteTangibleThings
|
100
|
-
parameters:
|
101
|
-
- $ref: "#/components/parameters/id"
|
102
|
-
responses:
|
103
|
-
"404":
|
104
|
-
description: "Not Found"
|
105
|
-
"200":
|
106
|
-
description: "OK"
|
107
|
-
<% end %>
|
108
|
-
<% end %>
|
@@ -1,55 +0,0 @@
|
|
1
|
-
/teams:
|
2
|
-
get:
|
3
|
-
tags:
|
4
|
-
- Teams
|
5
|
-
summary: "List Teams"
|
6
|
-
operationId: listTeams
|
7
|
-
responses:
|
8
|
-
"404":
|
9
|
-
description: "Not Found"
|
10
|
-
"200":
|
11
|
-
description: "OK"
|
12
|
-
content:
|
13
|
-
application/json:
|
14
|
-
schema:
|
15
|
-
type: object
|
16
|
-
properties:
|
17
|
-
data:
|
18
|
-
type: array
|
19
|
-
items:
|
20
|
-
$ref: "#/components/schemas/TeamAttributes"
|
21
|
-
has_more:
|
22
|
-
type: boolean
|
23
|
-
/teams/{id}:
|
24
|
-
get:
|
25
|
-
tags:
|
26
|
-
- Teams
|
27
|
-
summary: "Fetch Team"
|
28
|
-
operationId: fetchTeam
|
29
|
-
parameters:
|
30
|
-
- $ref: "#/components/parameters/id"
|
31
|
-
responses:
|
32
|
-
"404":
|
33
|
-
description: "Not Found"
|
34
|
-
"200":
|
35
|
-
description: "OK"
|
36
|
-
content:
|
37
|
-
application/json:
|
38
|
-
schema:
|
39
|
-
$ref: "#/components/schemas/TeamAttributes"
|
40
|
-
put:
|
41
|
-
tags:
|
42
|
-
- Teams
|
43
|
-
summary: "Update Team"
|
44
|
-
operationId: updateTeam
|
45
|
-
parameters:
|
46
|
-
- $ref: "#/components/parameters/id"
|
47
|
-
responses:
|
48
|
-
"404":
|
49
|
-
description: "Not Found"
|
50
|
-
"200":
|
51
|
-
description: "OK"
|
52
|
-
content:
|
53
|
-
application/json:
|
54
|
-
schema:
|
55
|
-
$ref: "#/components/schemas/TeamParameters"
|
@@ -1,55 +0,0 @@
|
|
1
|
-
/users:
|
2
|
-
get:
|
3
|
-
tags:
|
4
|
-
- Users
|
5
|
-
summary: "List Users"
|
6
|
-
operationId: listUsers
|
7
|
-
responses:
|
8
|
-
"404":
|
9
|
-
description: "Not Found"
|
10
|
-
"200":
|
11
|
-
description: "OK"
|
12
|
-
content:
|
13
|
-
application/json:
|
14
|
-
schema:
|
15
|
-
type: object
|
16
|
-
properties:
|
17
|
-
data:
|
18
|
-
type: array
|
19
|
-
items:
|
20
|
-
$ref: "#/components/schemas/UserAttributes"
|
21
|
-
has_more:
|
22
|
-
type: boolean
|
23
|
-
/users/{id}:
|
24
|
-
get:
|
25
|
-
tags:
|
26
|
-
- Users
|
27
|
-
summary: "Fetch User"
|
28
|
-
operationId: fetchUser
|
29
|
-
parameters:
|
30
|
-
- $ref: "#/components/parameters/id"
|
31
|
-
responses:
|
32
|
-
"404":
|
33
|
-
description: "Not Found"
|
34
|
-
"200":
|
35
|
-
description: "OK"
|
36
|
-
content:
|
37
|
-
application/json:
|
38
|
-
schema:
|
39
|
-
$ref: "#/components/schemas/UserAttributes"
|
40
|
-
put:
|
41
|
-
tags:
|
42
|
-
- Users
|
43
|
-
summary: "Update User"
|
44
|
-
operationId: updateUser
|
45
|
-
parameters:
|
46
|
-
- $ref: "#/components/parameters/id"
|
47
|
-
responses:
|
48
|
-
"404":
|
49
|
-
description: "Not Found"
|
50
|
-
"200":
|
51
|
-
description: "OK"
|
52
|
-
content:
|
53
|
-
application/json:
|
54
|
-
schema:
|
55
|
-
$ref: "#/components/schemas/UserParameters"
|
@@ -1 +0,0 @@
|
|
1
|
-
json.array! @access_tokens, partial: "api/v2/platform/access_tokens/access_token", as: :access_token
|
@@ -1 +0,0 @@
|
|
1
|
-
json.partial! "api/v2/platform/access_tokens/access_token", access_token: @access_token
|
@@ -1 +0,0 @@
|
|
1
|
-
json.array! @teams, partial: "api/v2/teams/team", as: :team
|
@@ -1 +0,0 @@
|
|
1
|
-
json.partial! "api/v2/teams/team", team: @team
|
@@ -1 +0,0 @@
|
|
1
|
-
json.array! @users, partial: "api/v2/users/user", as: :user
|
@@ -1 +0,0 @@
|
|
1
|
-
json.partial! "api/v2/users/user", user: @user
|