README.md 863 Bytes
Newer Older
Marco Malavolti's avatar
Marco Malavolti committed
1
2
# HOWTO Install and Configure ECCS-2

Marco Malavolti's avatar
Marco Malavolti committed
3
4
5
6
7
8
9
* `sudo apt install python3 python3-pip chromium chromium-l10n git`
* `python3 -m pip install --user --upgrade pip virtualenv`
* `python3 -m venv eccs2venv`
* `source eccs2venv/bin/activate`   (`deactivate` di exit Virtualenv)
  * `python3 -m pip install --upgrade wheel setuptools certifi selenium urllib3 flask flask-jsonpify flask-restful`
  * `cd ~ ; git clone https://github.com/malavolti/eccs2.git`
  * `cd eccs2 ; ./eccs2.py`
Marco Malavolti's avatar
Marco Malavolti committed
10

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# API

* `/eccs/test` (Trivial Test)
* `/eccs/checks` (Should return the results of the last checks)
* `/eccs/checks?<parameter>=<value>`:
  * `date=2020-02-20` (select date)
  * `idp=Any%20words%20do%20you%20like%20url%20encoded`
  * `status=`
    * 'OK'
    * 'TIMEOUT'
    * 'No-eduGAIN-Metadata'
    * 'Form-Invalid'
    * 'Excluded'

# API Development Server

Marco Malavolti's avatar
Marco Malavolti committed
27
* `cd ~/eccs2 ; ./api.py`