Developer guide
Developers
If you would like to contribute to the APEL REST interface.
Fork us at https://github.com/apel/rest
Create a feature branch off of
dev
When ready, submit a pull request.
See here for instructions to run the Docker Images locally using docker-compose
Setup from source (on Centos 6)
We recommend this for development work ONLY.
Install python, pip, mysql, apache, apache modules, trust bundle and other required RPMS for development.
Upgrade pip and setuptools
Install requirements.txt
Clone the repo to
/var/www/html
Create the database
Create a new, self signed, certificate
Copy the configuration files
Copy the script files
Create log, run and spool directories
To allow successful GET requests, you will need to register your APEL REST instance with the Indigo DataCloud IAM and add IAM variables in
/var/www/html/apel_rest/settings.py
. You will also need to register a second service (the querying test service), and authorise it by adding it's ID toALLOWED_FOR_GET
Run
python manage.py collectstatic
Start Apache with
service httpd start
Start the loader with
service apeldbloader-cloud start
Navigate a web browser to "https:///api/v1/cloud/record/summary/"
Last updated