bullet_train-super_scaffolding 1.1.0 → 1.1.3
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/app/views/api/v1/open_api/index.yaml.erb +29 -0
- data/app/views/api/v1/open_api/scaffolding/completely_concrete/tangible_things/_components.yaml.erb +32 -0
- data/app/views/api/v1/open_api/scaffolding/completely_concrete/tangible_things/_paths.yaml.erb +55 -0
- data/app/views/api/v1/scaffolding/completely_concrete/tangible_things/_tangible_thing.json.jbuilder +0 -4
- data/config/locales/en/scaffolding/completely_concrete/tangible_things.en.yml +1 -1
- data/config/routes.rb +3 -1
- data/lib/bullet_train/super_scaffolding/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b42368a9e53db912df4098e089a0315dcb579ca68ed88cde1cbeaaea8e34f680
|
4
|
+
data.tar.gz: b88b8ce935cee1a0df347de0d3138c9206636199a52471f873faecb280386d9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee1ac7ec5aa2a9a9c7914070b2753c54bc418caad6d858bdd994a33ff7cef1949e0366471805eddb7a0f89b5938d0a882c95171768358a3cd5b6500766499e82
|
7
|
+
data.tar.gz: 561c3c95e9447036a16b83652b06122e997af598e9c98d46d5ed7d1c2286e5d9b518462cc7b8ba76c8b3438d7ad870ee92584839fc7d6af39ecccc0900d0e5f8
|
@@ -0,0 +1,29 @@
|
|
1
|
+
openapi: 3.1.0
|
2
|
+
info:
|
3
|
+
title: Bullet Train API
|
4
|
+
description: |
|
5
|
+
The baseline API of a new Bullet Train application.
|
6
|
+
license:
|
7
|
+
name: MIT
|
8
|
+
url: https://opensource.org/licenses/MIT
|
9
|
+
version: "<%= @version.upcase %>"
|
10
|
+
servers:
|
11
|
+
- url: <%= ENV["BASE_URL"] %>/api/<%= @version %>
|
12
|
+
components:
|
13
|
+
schemas:
|
14
|
+
<%= components_for Team %>
|
15
|
+
<%= components_for User %>
|
16
|
+
<%= components_for Scaffolding::CompletelyConcrete::TangibleThing unless scaffolding_things_disabled? %>
|
17
|
+
<%# 🚅 super scaffolding will insert new components above this line. %>
|
18
|
+
parameters:
|
19
|
+
id:
|
20
|
+
name: id
|
21
|
+
in: path
|
22
|
+
required: true
|
23
|
+
schema:
|
24
|
+
type: string
|
25
|
+
paths:
|
26
|
+
<%= paths_for Team %>
|
27
|
+
<%= paths_for User %>
|
28
|
+
<%= paths_for Scaffolding::CompletelyConcrete::TangibleThing unless scaffolding_things_disabled? %>
|
29
|
+
<%# 🚅 super scaffolding will insert new paths above this line. %>
|
data/app/views/api/v1/open_api/scaffolding/completely_concrete/tangible_things/_components.yaml.erb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
Scaffolding::CompletelyConcrete::TangibleThing::Attributes:
|
2
|
+
type: object
|
3
|
+
properties:
|
4
|
+
<%= attribute :id %>
|
5
|
+
<%= attribute :absolutely_abstract_creative_concept_id %>
|
6
|
+
<%# 🚅 skip this section when scaffolding. %>
|
7
|
+
<%= attribute :text_field_value %>
|
8
|
+
<%= attribute :button_value %>
|
9
|
+
<%= attribute :boolean_button_value %>
|
10
|
+
<%= attribute :cloudinary_image_value %>
|
11
|
+
<%= attribute :date_field_value %>
|
12
|
+
<%= attribute :email_field_value %>
|
13
|
+
<%= attribute :file_field_value %>
|
14
|
+
<%= attribute :password_field_value %>
|
15
|
+
<%= attribute :phone_field_value %>
|
16
|
+
<%= attribute :option_value %>
|
17
|
+
<%= attribute :multiple_option_values %>
|
18
|
+
<%= attribute :super_select_value %>
|
19
|
+
<%= attribute :text_area_value %>
|
20
|
+
<%= attribute :action_text_value %>
|
21
|
+
<%# 🚅 stop any skipping we're doing now. %>
|
22
|
+
<%# 🚅 super scaffolding will insert new attributes above this line. %>
|
23
|
+
<%= attribute :created_at %>
|
24
|
+
<%= attribute :updated_at %>
|
25
|
+
|
26
|
+
Scaffolding::CompletelyConcrete::TangibleThing::Parameters:
|
27
|
+
type: object
|
28
|
+
properties:
|
29
|
+
<%# 🚅 skip this section when scaffolding. %>
|
30
|
+
<%= parameter :text_field_value %>
|
31
|
+
<%# 🚅 stop any skipping we're doing now. %>
|
32
|
+
<%# 🚅 super scaffolding will insert new parameter above this line. %>
|
data/app/views/api/v1/open_api/scaffolding/completely_concrete/tangible_things/_paths.yaml.erb
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
/scaffolding/completely_concrete/tangible_things:
|
2
|
+
get:
|
3
|
+
tags:
|
4
|
+
- Scaffolding Completely Concrete Tangible Things
|
5
|
+
summary: "List Tangible Things"
|
6
|
+
operationId: listScaffoldingCompletelyConcreteTangibleThings
|
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/Scaffolding::CompletelyConcrete::TangibleThing::Attributes"
|
21
|
+
has_more:
|
22
|
+
type: boolean
|
23
|
+
/scaffolding/completely_concrete/tangible_things/{id}:
|
24
|
+
get:
|
25
|
+
tags:
|
26
|
+
- Scaffolding Completely Concrete Tangible Things
|
27
|
+
summary: "Fetch Tangible Thing"
|
28
|
+
operationId: getScaffoldingCompletelyConcreteTangibleThings
|
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/Scaffolding::CompletelyConcrete::TangibleThing::Attributes"
|
40
|
+
put:
|
41
|
+
tags:
|
42
|
+
- Scaffolding Completely Concrete Tangible Things
|
43
|
+
summary: "Update Tangible Thing"
|
44
|
+
operationId: updateScaffoldingCompletelyConcreteTangibleThings
|
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/Scaffolding::CompletelyConcrete::TangibleThing::Parameters"
|
data/app/views/api/v1/scaffolding/completely_concrete/tangible_things/_tangible_thing.json.jbuilder
CHANGED
@@ -20,7 +20,3 @@ json.extract! tangible_thing,
|
|
20
20
|
# 🚅 super scaffolding will insert new fields above this line.
|
21
21
|
:created_at,
|
22
22
|
:updated_at
|
23
|
-
|
24
|
-
# if tangible_thing.persisted?
|
25
|
-
# json.url api_v1_scaffolding_completely_concrete_tangible_thing_url(tangible_thing, format: :json)
|
26
|
-
# end
|
@@ -17,7 +17,7 @@ en:
|
|
17
17
|
destroy: Delete
|
18
18
|
confirmations:
|
19
19
|
# TODO customize for your use-case.
|
20
|
-
destroy: Are you sure you want to remove %{tangible_thing_name}? This will also remove
|
20
|
+
destroy: Are you sure you want to remove %{tangible_thing_name}? This will also remove any child resources and can't be undone.
|
21
21
|
fields: &fields
|
22
22
|
id:
|
23
23
|
heading: Tangible Thing ID
|
data/config/routes.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
|
+
# See `config/routes.rb` for details.
|
2
3
|
collection_actions = [:index, :new, :create]
|
4
|
+
extending = {only: []}
|
3
5
|
|
4
6
|
namespace :api do
|
5
7
|
namespace :v1 do
|
6
8
|
shallow do
|
7
|
-
resources :teams do
|
9
|
+
resources :teams, extending do
|
8
10
|
unless scaffolding_things_disabled?
|
9
11
|
namespace :scaffolding do
|
10
12
|
namespace :absolutely_abstract do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-super_scaffolding
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.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: 2022-09-
|
11
|
+
date: 2022-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -128,6 +128,9 @@ files:
|
|
128
128
|
- app/views/account/scaffolding/completely_concrete/tangible_things/index.html.erb
|
129
129
|
- app/views/account/scaffolding/completely_concrete/tangible_things/new.html.erb
|
130
130
|
- app/views/account/scaffolding/completely_concrete/tangible_things/show.html.erb
|
131
|
+
- app/views/api/v1/open_api/index.yaml.erb
|
132
|
+
- app/views/api/v1/open_api/scaffolding/completely_concrete/tangible_things/_components.yaml.erb
|
133
|
+
- app/views/api/v1/open_api/scaffolding/completely_concrete/tangible_things/_paths.yaml.erb
|
131
134
|
- app/views/api/v1/scaffolding/completely_concrete/tangible_things/_tangible_thing.json.jbuilder
|
132
135
|
- app/views/api/v1/scaffolding/completely_concrete/tangible_things/index.json.jbuilder
|
133
136
|
- app/views/api/v1/scaffolding/completely_concrete/tangible_things/show.json.jbuilder
|