This repository contains a service adapter for querying the Wikipedia API. The service provides the Schul-Cloud Search API interface.
After clone this repo go inside the directory and run :
npm install
To start the service on default configurations run:
npm start
The Service will listen on localhost:3000.
If you want to run it under an other port/address run:
nodejs app.js -address address-to-listen-on -port port-to-listen-on
When running without params port or address will be default
your.domain/v1?q=search-value&page[limit]=12&filter[license]=pd
Query params:
- Q = query value for searching.
- page[limit] = max number of result elements.
- page[offset] = offset of the result elements.
- filer[filterKey] = filter for the result. The filterKey must be an key of the result object.
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.