diff --git a/.gitignore b/.gitignore index af2bdb4..cc348ef 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,3 @@ coverage.xml *.pg_restore -src/* \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 0ff20b1..2834055 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,7 +11,7 @@ "program": "main.py", "console": "integratedTerminal", "justMyCode": true, - "env":{"HAPI_USE_VAT": "true"} + "env":{"HAPI_USE_VAT": "false"} } ], diff --git a/hdx_hapi/endpoints/get_affected_people.py b/hdx_hapi/endpoints/get_affected_people.py index e178cd5..8faa49a 100644 --- a/hdx_hapi/endpoints/get_affected_people.py +++ b/hdx_hapi/endpoints/get_affected_people.py @@ -144,7 +144,13 @@ async def get_humanitarian_needs( # ref_period_parameters: Annotated[ReferencePeriodParameters, Depends(reference_period_parameters)], common_parameters: Annotated[CommonEndpointParams, Depends(common_endpoint_parameters)], db: AsyncSession = Depends(get_db), - category: Annotated[Optional[str], Query(max_length=128, description='')] = None, + category: Annotated[ + Optional[str], + Query( + max_length=128, + description='A category combining gender, age range, disability marker and population group information', + ), + ] = None, sector_code: Annotated[Optional[str], Query(max_length=32, description=f'{DOC_SECTOR_CODE}')] = None, population_status: Annotated[ Optional[PopulationStatus], Query(max_length=32, description=f'{DOC_POPULATION_STATUS}')