openfisca / openfisca-web-api

[DEPRECATED] Web API for OpenFisca
https://www.openfisca.fr/
GNU Affero General Public License v3.0
13 stars 11 forks source link

Support any country #76

Closed fpagnoux closed 7 years ago

fpagnoux commented 7 years ago

As a Producer from a new country, I can use the web-api to expose the formulas I add, So that they can be computed over HTTP


The web api didn't work out of the box for openfisca Senegal.

fpagnoux commented 7 years ago

1st problem

There is a reference to the TaxBenefitSystem attribute DECOMP_DIR. A default TBS doesn't have such an attribute.

I understand the basic concept of a decomposition, but not everything. For instance, some decomposition node have a color attribute. Is it styling for the UI ?

benjello commented 7 years ago

Yes it is.

fpagnoux commented 7 years ago

Ok. There are some big issues with decompositions (style elements in a country package, copy paste of variables labels in description, logic repetition) but it is too big to deal with now. I will just find a workaround.

fpagnoux commented 7 years ago

2nd problem

Some general business (such as parsing the periods) is done in make_json_or_python_to_test_case in france country package.

fpagnoux commented 7 years ago

Wooo finished, that was a big block !