rafinkanisa / ngm-reportDesk

The workdesk for ReportHub
0 stars 1 forks source link

Tokenized API #151

Open rafinkanisa opened 2 years ago

rafinkanisa commented 2 years ago

The APIs we currently have is can be accessible publicly

We'll have to make this tokenized and track who's downloading for statistics

for example : https://reporthub.immap.org/api/cluster/indicator?adminRpcode=emro&admin0pcode=af&admin1pcode=all&admin2pcode=all&cluster_id=all&organization_tag=unhcr&start_date=2021-01-01&end_date=2021-12-31&indicator=beneficiaries&beneficiaries[]=all&ocha=true&json=true&reportname=UNHCR_2021

fakhrihawari commented 2 years ago

Now after this we need to check if the user has the right to download the file or not based on user role

sud0su commented 2 years ago

The APIs we currently have is can be accessible publicly

We'll have to make this tokenized and track who's downloading for statistics

for example : https://reporthub.immap.org/api/cluster/indicator?adminRpcode=emro&admin0pcode=af&admin1pcode=all&admin2pcode=all&cluster_id=all&organization_tag=unhcr&start_date=2021-01-01&end_date=2021-12-31&indicator=beneficiaries&beneficiaries[]=all&ocha=true&json=true&reportname=UNHCR_2021

Now after this we need to check if the user has the right to download the file or not based on user role

the API tokenization has been developed and pushed on the add-api-tokenization branch

rafinkanisa commented 2 years ago

I think it would be nice to have a copy button also

Screen Shot 2021-12-23 at 17 04 28
sud0su commented 2 years ago

Done, i will push the updated code to the #add-api-tokenization branch.

Screen Shot 2021-12-24 at 10 54 05