diff --git a/apps/block_scout_web/assets/css/components/_nav_tabs.scss b/apps/block_scout_web/assets/css/components/_nav_tabs.scss index d52ddd23c0..90e4d0e736 100644 --- a/apps/block_scout_web/assets/css/components/_nav_tabs.scss +++ b/apps/block_scout_web/assets/css/components/_nav_tabs.scss @@ -29,3 +29,13 @@ background-color: darken($primary, 10%); border-color: darken($primary, 10%); } + +.api-doc-tab { + padding-bottom: 5px; + color: $primary !important; + background-color: transparent !important; +} + +.api-doc-tab.active { + border-bottom: 1px solid $primary; +} diff --git a/apps/block_scout_web/lib/block_scout_web/templates/api_docs/_action_tile.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/api_docs/_action_tile.html.eex index 7a5139bef3..4d9eebfbe3 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/api_docs/_action_tile.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/api_docs/_action_tile.html.eex @@ -19,198 +19,190 @@ -
Name | -Description | -
---|---|
- module - - * required - - string - (query) - | -
+
+
|
-
- action - - * required - - string - (query) - | -
+
+
+
|
-
- <%= required_param.key %> - - * required - - <%= required_param.type %> - (query) - | -
+
+ <%= required_param.key %>
+
+ * required
+
+
+ <%= required_param.type %> (query)
+
" data-required="true" type="text" class="collapse form-control form-control-danger is-invalid" placeholder="<%= input_placeholder(required_param) %>" data-parameter-key="<%= required_param.key %>">
- |
- - <%= optional_param.key %> - <%= optional_param.type %> - (query) - | -
+
|
-
+
+
<% end %>
-
-
" class="text-white m-2">+
" class="m-2">+
" class="text-white m-2">+
" class="m-2">+
Code | -Details | -
---|---|
"> - | -
- Response Body-
-
- " class="text-white m-2">- |
-
" class="m-2">+
Code | -Description | -
---|---|
- <%= response.code %> - | -
-
-
-
- <%= response.description %>- |
-
- <%= key %> - | -
-
- <%= details.type %>
- <%= if details[:definition] do %>
-
- <% end %>
-
- <%= if details[:type] == "array" do %>
-
- [<%= details.array_type.name %>]
-
- <% end %>
- <%= if details[:enum] do %>
- enum: <%= details.enum %>
+ <%= for {key, details} <- @model.fields do %>
+
|
- - |
---|