Statistics API endpoint
Implement an API endpoint that exposes PDCI and updates information:
- % of records updated in report year
- % of collection with DOIs
- Average PDCI
Clarifications in websites/grants.croptrust.org#25:
- "Institute" level
- Active collections only
- Year cut-off
API endpoints
Based on INSTCODE
:
/api/v0/stats/{instCode}
GET {
"instCode": "PHL001",
"activeAccessions": 1000,
"lastUpdated": {
"2017": 999,
"2004": 1
},
"averagePdci": 6.44,
"withDoi": 777
}
Edited by Matija Obreza