Skip to content

jhu-library-applications/levy-api

Repository files navigation

Levy Sheet Music Drupal Sites

Test Instance: https://levy-test.mse.jhu.edu (Can only access while on VPN)

Production Instance: https://levysheetmusic.mse.jhu.edu/

Drupal settings required for these scripts

Install JSON:API module

Install Paragraph Type Permissions sub-module

Authentication

In your /post and /get folders, please create a secrets.py and secretsProd.py files that contains the following information. For secrets.py, the baseURL should correspond to the URL of the test/stage site. For secretsProd.py the baseURL should correspond to the URL of the production (official) site. This information will be used in the scripts that require authentication to post to Drupal.

username='username'
password='password'
baseURL='https://example.com/'

In order to ensure that these files are not uploaded to GitHub, add secrets.py and secretsProd.py to a .gitignore file in your /post and /get folders.

# Local
secrets.py
secretsProd.py

Wiki

Please see the wiki for instructions and more information about the API.

About

Scripts to get and update Drupal 8 website's metadata.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages