Merge branch 'master' of github.com:D4-project/BGP-Ranking

pull/12/head
Raphaël Vinot 2019-11-27 17:37:03 +01:00
commit fd9c0e03af
1 changed files with 43 additions and 1 deletions

View File

@ -81,7 +81,7 @@ curl -X POST -d '{"asn": "5577", "date": "2019-05-19"}' https://bgpranking-ng.ci
Note: `date` isn't required.
## Response
### Response
```json
{
@ -99,6 +99,48 @@ Note: `date` isn't required.
}
```
## Get historical information for an ASN
```
curl -X POST -d '{"asn": "5577", "period": 5}' https://bgpranking-ng.circl.lu/json/asn_history
```
### Response
```json
{
"meta": {
"asn": "5577",
"period": 5
},
"response": {
"asn_history": [
[
"2019-11-10",
0.00036458333333333335
],
[
"2019-11-11",
0.00036168981481481485
],
[
"2019-11-12",
0.0003761574074074074
],
[
"2019-11-13",
0.0003530092592592593
],
[
"2019-11-14",
0.0003559027777777778
]
]
}
}
```
# Server Installation (if you want to run your own)
**IMPORTANT**: Use [pipenv](https://pipenv.readthedocs.io/en/latest/)