A CLI tool to map the litigation data to the required JSON format for bulk-import.
-
Developers please read the developers.md file for more information.
-
This tool is designed to map litigation data as received from the Sabin API
The mapper can be run locally as a CLI tool by navigating to the litigation_data_mapper directory and running:
litigation_data_mapper
If --output_file
is not passed, by default an output file called output.json
will be created in the current directory if it does not already exist.
litigation_data_mapper --output_file FILENAME
By default the command will fetch all data from the Sabin API.
Setting the --get-modified-data
flag to true will fetch only data that was
added/modified in the update window specified (currently last 24hrs).
This tool is also run as a scheduled Prefect flow which pulls any new or updated data from the Sabin API and automatically passes them to the admin service backend /bulk-import endpoint to import to the RDS database.