Commit 633576b
feat: support multiple households in calculation endpoints (#73)
* feat: support multiple households in calculation endpoints
Changed entity inputs from single dicts to lists of dicts, enabling
callers to submit multiple households with entity relational dataframes.
The caller specifies {entity}_id fields in each entity and
person_{entity}_id fields in people to link them together.
For simple single-household requests, IDs can be omitted and all people
will default to entity 0.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: route paths and test fixtures for aggregate endpoints
- Changed route paths from "/" to "" to avoid trailing slash mismatch
- Added simulation_id fixture to create test dependencies
- Updated tests to use the fixture instead of random UUIDs
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: mock Modal functions in aggregate tests
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 3a16793 commit 633576b
8 files changed
Lines changed: 1009 additions & 252 deletions
File tree
- src/policyengine_api
- api
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
0 commit comments