https://github.com/natlibfi/onkilegacy
ONKI Legacy API support using Skosmos REST API
https://github.com/natlibfi/onkilegacy
Last synced: 5 months ago
JSON representation
ONKI Legacy API support using Skosmos REST API
- Host: GitHub
- URL: https://github.com/natlibfi/onkilegacy
- Owner: NatLibFi
- License: mit
- Created: 2014-06-16T07:13:00.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2024-11-06T14:04:01.000Z (over 1 year ago)
- Last Synced: 2025-07-10T10:46:36.199Z (12 months ago)
- Language: JavaScript
- Size: 1.03 MB
- Stars: 1
- Watchers: 12
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ONKILegacy
==========
ONKI Legacy API support using Skosmos REST API
## Installing
```
apt install php7.2-soap
cd soap
php composer.phar self-update
php composer.phar install
```
Running tests:
```
pip3 install suds-py3
```
Additionally the following (partial) virtual host configuration may be of use:
```
# map /rest to REST API calls
RewriteEngine On
RewriteRule ^/rest/v1/(.*) /var/www/$SKOSMOS_PATH/rest.php/$1
# Rule for HTTP method calls
RewriteRule ^/key-.*/api/v2/http/(.*) /http/http.php/$1?rest_base=$SKOSMOS_API_URL/rest/v1/ [QSA]
# Rule for SOAP method calls
RewriteRule ^/key-.*/api/v1/soap/(.*) /soap/soap.php?vocid=$1&rest_base=$SKOSMOS_API_URL/rest/v1/
# Rule for WSDL file requests (note: query string parameters are preserved)
RewriteRule ^/api/v1/soap/wsdl/$ /soap/onki-wsdl.php?h=$LEGACY_URL [QSA]
# allow caching of static resources for one day
ExpiresActive On
ExpiresDefault "access plus 1 day"
```