An open API service indexing awesome lists of open source software.

https://github.com/slub/slub_rvk_service

This scripts provides a JSON service for RVK-Notations
https://github.com/slub/slub_rvk_service

Last synced: 3 months ago
JSON representation

This scripts provides a JSON service for RVK-Notations

Awesome Lists containing this project

README

          

# SLUB - RVK Service
This scripts provides a JSON service for RVK-Notations

## Installation and use with Apache server
1. pull git with "git clone https://github.com/slub/slub_rvk_service.git /var/www/api"
2. change directory to "/var/www/api"
3. check for write access e.g. join group "www-data", userown for "www-data:www-data" and usermod g+w
4. start update script (first install included) with "php update.php"
5. finally test the service with your browser as described below

Hint: When the script immediately stops with "No new cache created because update was not necessary or failed at some point." but you don't have a cache,
use "php createCache.php". A valid rvko file renamed as "rvko_current.xml" needs to exist in the xml folder.

## XML-Update
Run update.php manually or use crontab like:
0 1 20 1-12/3 * www-data php /var/www/api/update.php

###For local testing and editing
1. git clone https://git.slub-dresden.de/slub-webseite/slub-rvk-service.git
2. git branch
3. git checkout
4. git add .
5. git commit
6. git push

## How to use the Service
Run the index.php file with parameter rvk eg:server/api/index.php?rvk=AA%2010000.