PolicyEngine / policyengine-api

PolicyEngine's REST API for computing policy impacts.
GNU Affero General Public License v3.0
7 stars 20 forks source link

get_economic_impact and get_analysis endpoints return messages mid-computation #418

Open anth-volk opened 1 year ago

anth-volk commented 1 year ago

This isn't an error, but more an idea for altering current functionality. At present, when a user accesses the GET-request endpoint at /{country_id}/economy/{policy_id}/over/{baseline_policy_id}, the endpoint returns three different 200 OK JSON responses:

From an API design standpoint, I think it may be best to alter this flow in one of two ways:

anth-volk commented 1 year ago

The same is roughly true for the get_analysis endpoint, though it appears it only returns one mid-computation message