X-lab2017 / open-digger

Open source analysis tools
https://open-digger.cn
Apache License 2.0
281 stars 78 forks source link

[Feature] A Nginx service to proxy data URL is useful #1521

Closed frank-zsy closed 5 months ago

frank-zsy commented 5 months ago

Description

Right now, all the metric data are under following URL: https://oss.x-lab.info/open_digger/{platform}/{owner}/{repo}/{metric}.json, but in some time we can not easily use constructed URL but rather to use a fixed URL with different query params like https://open-digger-data.x-lab.info?platform={platform}&name={name}&metric={metric}.

This will be very helpful like using OpenDigger data in DataV.

frank-zsy commented 5 months ago

The functionality is working now, we can use http://open-digger-data.x-lab.info/data?platform=github&name=X-lab2017/open-digger&metric=activity or http://open-digger-data.x-lab.info/data?platform=github&name=frank-zsy&metric=openrank to access data.

We use /data subpath in case there are more path to support in the future.