The endpoint that seems the most useful is /answers/{institutionType}. It returns all the data for a specific type of institution. For example /answers/ministry returns all the answers to all questions for all ministries.
This is almost the equivalent of the current way of retrieving the stats. For example, to retrieve ministries, now we make a request to /public/data/ministries_stats.json.
API spec is here: http://sna.code4.ro/swagger/dist/index.html
The endpoint that seems the most useful is
/answers/{institutionType}
. It returns all the data for a specific type of institution. For example/answers/ministry
returns all the answers to all questions for all ministries.This is almost the equivalent of the current way of retrieving the stats. For example, to retrieve ministries, now we make a request to
/public/data/ministries_stats.json
.