Skip to content

Commit

Permalink
Merge pull request #83 from alexsoble/add-housing-example-json
Browse files Browse the repository at this point in the history
Add housing.json file to situation examples; add to README
  • Loading branch information
benjello authored Feb 1, 2020
2 parents cc166c9 + 818af10 commit 9264b43
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

### 3.9.8 - [#83](https://github.com/openfisca/country-template/pull/83)

* Minor change.
* Details:
- Add additional example JSON file; add to README.

### 3.9.7 - [#80](https://github.com/openfisca/country-template/pull/80)

* Minor change.
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,14 @@ curl "http://localhost:5000/spec"

This endpoint returns the [Open API specification](https://www.openapis.org/) of your API.

:tada: This OpenFisca Country Package is now served by the OpenFisca Web API! To learn more, go to the [OpenFisca Web API documentation](https://openfisca.org/doc/openfisca-web-api/index.html)
:tada: This OpenFisca Country Package is now served by the OpenFisca Web API! To learn more, go to the [OpenFisca Web API documentation](https://openfisca.org/doc/openfisca-web-api/index.html).

You can test your new Web API by sending it example JSON data located in the `situation_examples` folder.

Substitute your package's country name for `openfisca_country_template` below:

```sh
curl -X POST -H "Content-Type: application/json" \
-d @./openfisca_country_template/situation_examples/couple.json \
http://localhost:5000/calculate
```
23 changes: 23 additions & 0 deletions openfisca_country_template/situation_examples/housing.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"persons": {
"Alicia": {
"birth": {
"2017-01": null
},
"disposable_income": {
"2017-01": null
}
}
},
"households": {
"_": {
"parents": ["Alicia"],
"housing_tax": {
"2017": null
},
"housing_occupancy_status": {
"2017-01": null
}
}
}
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name = "OpenFisca-Country-Template",
version = "3.9.7",
version = "3.9.8",
author = "OpenFisca Team",
author_email = "contact@openfisca.org",
classifiers=[
Expand Down

0 comments on commit 9264b43

Please sign in to comment.