Skip to content
Snippets Groups Projects
Commit 6d2d0159 authored by Jim Birch's avatar Jim Birch
Browse files

Adds Packagist based browsers

parent 523b342c
No related branches found
No related tags found
1 merge request!3Adds Packagist based browsers
Pipeline #295374 passed
......@@ -13,36 +13,38 @@ The Service is the endpoint you are connecting to.
For example, Packagist:
`api_browser.service.packagist.yml`
`api_browser.service.packagist_modules.yml`
```
id: packagist
name: 'Packagist'
description: 'Packagist is the main Composer repository. It aggregates public PHP packages installable with Composer.'
langcode: en
status: true
id: packagist_modules
name: 'Packagist Drupal Modules'
description: 'Lists all public Drupal Modules from packagist.org'
categories: |-
example_1|Example 1
example_2|Example 2
listing:
endpoint: 'https://packagist.org/packages/list.json'
method: GET
auth: no_auth
path: packages
pagination: true
pagination: false
page: ''
per_page: ''
search:
-
parameter: vendor
value: 'drupal'
-
parameter: type
value: 'drupal-recipe'
value: drupal-module
-
parameter: 'fields[]'
value: 'type'
value: type
-
parameter: 'fields[]'
value: 'repository'
value: repository
-
parameter: 'fields[]'
value: 'abandoned'
value: abandoned
project:
enable: true
endpoint: 'https://packagist.org/packages/{{item_key}}.json'
......@@ -70,6 +72,7 @@ field_mapping:
categories: ''
images: ''
warnings: ''
```
Twig is used for being able to parse and manipulate the data returned from the
......
langcode: en
status: true
id: packagist_drupal_recipes
name: 'Drupal.org Drupal Recipes'
description: 'Lists all public Drupal Recipes from Drupal.org on packagist.org'
categories: |-
example_1|Example 1
example_2|Example 2
listing:
endpoint: 'https://packagist.org/packages/list.json'
method: GET
auth: no_auth
path: packages
pagination: false
page: ''
per_page: ''
search:
-
parameter: vendor
value: drupal
-
parameter: type
value: drupal-recipe
-
parameter: 'fields[]'
value: type
-
parameter: 'fields[]'
value: repository
-
parameter: 'fields[]'
value: abandoned
project:
enable: true
endpoint: 'https://packagist.org/packages/{{item_key}}.json'
method: GET
auth: no_auth
path: package
field_mapping:
type: '{{ type | replace({"drupal-":""}) }}'
package_name: '{{ name }}'
machine_name: '{{ name }}'
url: '{{ repository }}'
logo: "{{ url('<front>') }}core/misc/logo/drupal-logo.svg"
title: '{{ name | split("/")[1] }}'
short_description: '{{ description }}'
long_description: '{{ description }}'
compatible: '{{ TRUE }}'
maintained: '{{ abandoned != TRUE }}'
covered: '{{ FALSE }}'
active: '{{ abandoned != TRUE }}'
star_user_count: '{{ github_stars }}'
project_usage_total: '{{ downloads.total }}'
created: '{{ (packages | first).time }}'
changed: '{{ (packages | last).time }}'
author: "{{ (authors| column('name')) | join(', ') }}"
categories: ''
images: ''
warnings: ''
langcode: en
status: true
id: packagist_kanopi_recipes
name: 'Kanopi Studios Drupal Recipes'
description: 'Lists all public Drupal Recipes from Kanopi Studios on packagist.org'
categories: |-
example_1|Example 1
example_2|Example 2
listing:
endpoint: 'https://packagist.org/packages/list.json'
method: GET
auth: no_auth
path: packages
pagination: false
page: ''
per_page: ''
search:
-
parameter: vendor
value: kanopi
-
parameter: type
value: drupal-recipe
-
parameter: 'fields[]'
value: type
-
parameter: 'fields[]'
value: repository
-
parameter: 'fields[]'
value: abandoned
project:
enable: true
endpoint: 'https://packagist.org/packages/{{item_key}}.json'
method: GET
auth: no_auth
path: package
field_mapping:
type: '{{ type | replace({"drupal-":""}) }}'
package_name: '{{ name }}'
machine_name: '{{ name }}'
url: '{{ repository }}'
logo: "{{ url('<front>') }}core/misc/logo/drupal-logo.svg"
title: '{{ name | split("/")[1] }}'
short_description: '{{ description }}'
long_description: '{{ description }}'
compatible: '{{ TRUE }}'
maintained: '{{ abandoned != TRUE }}'
covered: '{{ FALSE }}'
active: '{{ abandoned != TRUE }}'
star_user_count: '{{ github_stars }}'
project_usage_total: '{{ downloads.total }}'
created: '{{ (packages | first).time }}'
changed: '{{ (packages | last).time }}'
author: "{{ (authors| column('name')) | join(', ') }}"
categories: ''
images: ''
warnings: ''
langcode: en
status: true
id: packagist_modules
name: 'Packagist Drupal Modules'
description: 'Lists all public Drupal Modules from packagist.org'
categories: |-
example_1|Example 1
example_2|Example 2
listing:
endpoint: 'https://packagist.org/packages/list.json'
method: GET
auth: no_auth
path: packages
pagination: false
page: ''
per_page: ''
search:
-
parameter: type
value: drupal-module
-
parameter: 'fields[]'
value: type
-
parameter: 'fields[]'
value: repository
-
parameter: 'fields[]'
value: abandoned
project:
enable: true
endpoint: 'https://packagist.org/packages/{{item_key}}.json'
method: GET
auth: no_auth
path: package
field_mapping:
type: '{{ type | replace({"drupal-":""}) }}'
package_name: '{{ name }}'
machine_name: '{{ name }}'
url: '{{ repository }}'
logo: "{{ url('<front>') }}core/misc/logo/drupal-logo.svg"
title: '{{ name | split("/")[1] }}'
short_description: '{{ description }}'
long_description: '{{ description }}'
compatible: '{{ TRUE }}'
maintained: '{{ abandoned != TRUE }}'
covered: '{{ FALSE }}'
active: '{{ abandoned != TRUE }}'
star_user_count: '{{ github_stars }}'
project_usage_total: '{{ downloads.total }}'
created: '{{ (packages | first).time }}'
changed: '{{ (packages | last).time }}'
author: "{{ (authors| column('name')) | join(', ') }}"
categories: ''
images: ''
warnings: ''
langcode: en
status: true
id: packagist_recipes
name: 'Packagist Drupal Recipes'
description: 'Lists all public Drupal Recipes from packagist.org'
categories: |-
example_1|Example 1
example_2|Example 2
listing:
endpoint: 'https://packagist.org/packages/list.json'
method: GET
auth: no_auth
path: packages
pagination: false
page: ''
per_page: ''
search:
-
parameter: type
value: drupal-recipe
-
parameter: 'fields[]'
value: type
-
parameter: 'fields[]'
value: repository
-
parameter: 'fields[]'
value: abandoned
project:
enable: true
endpoint: 'https://packagist.org/packages/{{item_key}}.json'
method: GET
auth: no_auth
path: package
field_mapping:
type: '{{ type | replace({"drupal-":""}) }}'
package_name: '{{ name }}'
machine_name: '{{ name }}'
url: '{{ repository }}'
logo: "{{ url('<front>') }}core/misc/logo/drupal-logo.svg"
title: '{{ name | split("/")[1] }}'
short_description: '{{ description }}'
long_description: '{{ description }}'
compatible: '{{ TRUE }}'
maintained: '{{ abandoned != TRUE }}'
covered: '{{ FALSE }}'
active: '{{ abandoned != TRUE }}'
star_user_count: '{{ github_stars }}'
project_usage_total: '{{ downloads.total }}'
created: '{{ (packages | first).time }}'
changed: '{{ (packages | last).time }}'
author: "{{ (authors| column('name')) | join(', ') }}"
categories: ''
images: ''
warnings: ''
langcode: en
status: true
id: packagist_themes
name: 'Packagist Drupal Themes'
description: 'Lists all public Drupal Themes from packagist.org'
categories: |-
example_1|Example 1
example_2|Example 2
listing:
endpoint: 'https://packagist.org/packages/list.json'
method: GET
auth: no_auth
path: packages
pagination: false
page: ''
per_page: ''
search:
-
parameter: type
value: drupal-theme
-
parameter: 'fields[]'
value: type
-
parameter: 'fields[]'
value: repository
-
parameter: 'fields[]'
value: abandoned
project:
enable: true
endpoint: 'https://packagist.org/packages/{{item_key}}.json'
method: GET
auth: no_auth
path: package
field_mapping:
type: '{{ type | replace({"drupal-":""}) }}'
package_name: '{{ name }}'
machine_name: '{{ name }}'
url: '{{ repository }}'
logo: "{{ url('<front>') }}core/misc/logo/drupal-logo.svg"
title: '{{ name | split("/")[1] }}'
short_description: '{{ description }}'
long_description: '{{ description }}'
compatible: '{{ TRUE }}'
maintained: '{{ abandoned != TRUE }}'
covered: '{{ FALSE }}'
active: '{{ abandoned != TRUE }}'
star_user_count: '{{ github_stars }}'
project_usage_total: '{{ downloads.total }}'
created: '{{ (packages | first).time }}'
changed: '{{ (packages | last).time }}'
author: "{{ (authors| column('name')) | join(', ') }}"
categories: ''
images: ''
warnings: ''
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment