Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRUP-796] Replace apigee_edge_apidocs with apigee_api_catalog #114

Merged
merged 6 commits into from May 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion apigee_devportal_kickstart.info.yml
Expand Up @@ -57,7 +57,7 @@ install:
- admin_toolbar_tools
- adminimal_admin_toolbar
- apigee_edge
- apigee_edge_apidocs
- apigee_api_catalog
- apigee_kickstart_customizer
- apigee_kickstart_enhancement
- better_exposed_filters
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -10,7 +10,7 @@
"type": "composer",
"url": "https://packages.drupal.org/8"
},
"swagger-api/swagger-ui": {
"swagger-api/swagger-ui": {
"type": "package",
"package": {
"name": "swagger-api/swagger-ui",
Expand All @@ -32,6 +32,7 @@
"drupal-composer/drupal-scaffold": "^2",
"drupal/admin_toolbar": "^1.0",
"drupal/adminimal_admin_toolbar": "^1.9",
"drupal/apigee_api_catalog": "~1.0",
"drupal/apigee_edge": "^1.0",
"drupal/better_exposed_filters": "^3.0@alpha",
"drupal/default_content": "^1.0@alpha",
Expand Down
Expand Up @@ -5,7 +5,7 @@ dependencies:
- field.field.apidoc.apidoc.field_categories
- field.field.apidoc.apidoc.field_image
module:
- apigee_edge_apidocs
- apigee_api_catalog
- file
- media_library
- text
Expand Down
Expand Up @@ -6,7 +6,7 @@ dependencies:
- field.field.apidoc.apidoc.field_categories
- field.field.apidoc.apidoc.field_image
module:
- apigee_edge_apidocs
- apigee_api_catalog
- text
id: apidoc.apidoc.card
targetEntityType: apidoc
Expand Down
Expand Up @@ -5,7 +5,7 @@ dependencies:
- field.field.apidoc.apidoc.field_categories
- field.field.apidoc.apidoc.field_image
module:
- apigee_edge_apidocs
- apigee_api_catalog
- swagger_ui_formatter
id: apidoc.apidoc.default
targetEntityType: apidoc
Expand Down
2 changes: 1 addition & 1 deletion config/install/core.entity_view_mode.apidoc.card.yml
Expand Up @@ -2,7 +2,7 @@ langcode: en
status: true
dependencies:
module:
- apigee_edge_apidocs
- apigee_api_catalog
id: apidoc.card
label: Card
targetEntityType: apidoc
Expand Down
Expand Up @@ -5,7 +5,7 @@ dependencies:
- field.storage.apidoc.field_categories
- taxonomy.vocabulary.api_category
module:
- apigee_edge_apidocs
- apigee_api_catalog
id: apidoc.apidoc.field_categories
field_name: field_categories
entity_type: apidoc
Expand Down
2 changes: 1 addition & 1 deletion config/install/field.field.apidoc.apidoc.field_image.yml
Expand Up @@ -5,7 +5,7 @@ dependencies:
- field.storage.apidoc.field_image
- media.type.image
module:
- apigee_edge_apidocs
- apigee_api_catalog
id: apidoc.apidoc.field_image
field_name: field_image
entity_type: apidoc
Expand Down
2 changes: 1 addition & 1 deletion config/install/field.storage.apidoc.field_categories.yml
Expand Up @@ -2,7 +2,7 @@ langcode: en
status: true
dependencies:
module:
- apigee_edge_apidocs
- apigee_api_catalog
- taxonomy
id: apidoc.field_categories
field_name: field_categories
Expand Down
2 changes: 1 addition & 1 deletion config/install/field.storage.apidoc.field_image.yml
Expand Up @@ -2,7 +2,7 @@ langcode: en
status: true
dependencies:
module:
- apigee_edge_apidocs
- apigee_api_catalog
- media
id: apidoc.field_image
field_name: field_image
Expand Down
Expand Up @@ -3,19 +3,18 @@ status: true
dependencies:
config:
- core.entity_view_mode.apidoc.card
- field.storage.apidoc.field_categories
shadcn marked this conversation as resolved.
Show resolved Hide resolved
- system.menu.main
- taxonomy.vocabulary.api_category
module:
- apigee_edge_apidocs
- apigee_api_catalog
- better_exposed_filters
- taxonomy
- text
- user
id: apigee_edge_api_docs
label: 'Apigee Edge API Docs'
id: apigee_api_catalog
label: 'API Catalog'
module: views
description: 'APIs published using the API Docs Apigee Edge module.'
description: 'APIs published using the Apigee API Catalog module.'
tag: ''
base_table: apidoc_field_data
base_field: id
Expand Down Expand Up @@ -95,7 +94,7 @@ display:
style:
type: grid
options:
uses_fields: false
grouping: { }
columns: 12
automatic_width: true
alignment: horizontal
Expand Down Expand Up @@ -174,69 +173,6 @@ display:
entity_type: null
entity_field: name
plugin_id: field
field_categories:
id: field_categories
table: apidoc__field_categories
field: field_categories
relationship: none
group_type: group
admin_label: ''
label: Categories
exclude: false
alter:
alter_text: true
text: '<a href="/apis/{{ field_categories__target_id }}"> {{ field_categories }}</a>'
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: cust-padd
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: target_id
type: entity_reference_label
settings:
link: false
group_column: target_id
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ''
field_api_classes: false
plugin_id: field
description__value:
id: description__value
table: apidoc_field_data
Expand All @@ -263,14 +199,14 @@ display:
suffix: ''
target: ''
nl2br: false
max_length: 180
word_boundary: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: true
trim: false
preserve_tags: ''
html: false
element_type: ''
Expand Down Expand Up @@ -301,59 +237,6 @@ display:
entity_type: apidoc
entity_field: description
plugin_id: field
view_apidoc:
id: view_apidoc
table: apidoc
field: view_apidoc
relationship: none
group_type: group
admin_label: ''
label: ''
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: card-action
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
text: 'Read More'
output_url_as_text: false
absolute: false
entity_type: apidoc
plugin_id: entity_link
filters:
status:
id: status
Expand Down Expand Up @@ -467,53 +350,12 @@ display:
empty: true
tokenize: false
content:
value: '<p>No API documentation is currently available.</p>'
value: 'No API documentation is currently available.'
format: basic_html
plugin_id: text
relationships: { }
arguments:
field_categories_target_id:
id: field_categories_target_id
table: apidoc__field_categories
field: field_categories_target_id
relationship: none
group_type: group
admin_label: ''
default_action: ignore
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: ''
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
items_per_page: 25
override: false
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: none
fail: 'not found'
validate_options: { }
break_phrase: false
not: false
plugin_id: numeric
arguments: { }
display_extenders: { }
filter_groups:
operator: AND
groups:
1: AND
use_ajax: true
css_class: api-view
cache_metadata:
max-age: -1
contexts:
Expand All @@ -523,12 +365,10 @@ display:
- url.query_args
- user
- user.permissions
tags:
- 'config:field.storage.apidoc.field_categories'
- extensions
page:
tags: { }
page_1:
display_plugin: page
id: page
id: page_1
display_title: Page
position: 1
display_options:
Expand All @@ -537,7 +377,7 @@ display:
menu:
type: normal
title: APIs
description: 'API documentation'
description: 'API Catalog'
expanded: false
parent: ''
weight: 0
Expand All @@ -552,6 +392,5 @@ display:
- url.query_args
- user
- user.permissions
tags:
- 'config:field.storage.apidoc.field_categories'
- extensions
tags: { }

Expand Up @@ -18,7 +18,7 @@
url: content.field_link['#url'],
title: entity.label,
image: content.field_image,
body: content|without('name', 'field_image', 'field_link'),
body: content|without('name', 'field_image', 'field_link', 'spec'),
footer: content.field_link['#title'],
hover_shadow: true
} %}
Expand Down