/v1/cleanup/{lei} <- All institutions and filings for a LEI
/v1/cleanup/institution/{lei} <- Institutions for a LEI
/v1/cleanup/filing/{lei}/{period_code} <- Filings for a LEI for a given period
/v1/cleanup/submissions/{lei}/{period_code} <- Submissions for a LEI for a given period
Ran linting, so some of the changes are black/ruff adjustments
Created a cleanup.py Router with a single endpoint for /v1/cleanup/{lei}
Updated main.py so the app uses the one router currently
Left the existing code in there, with the previous endpoints, "just in case" we want to include those as separate endpoints to hit. Right now, only the /cleanup one is planned on being used. But @guffee23 / @nargis-sultani can play with adding the other endpoints as additional routers as desired.
Pulled out code that deletes institutions and filing data to "delete_helper" functions in each of the filing and institution router classes. Made them usable by the /cleanup endpoint as well as the previous separate set of endpoints (again just in case we want all that modularity in there, none of the code was replaced/removed)
Closes #35
Added the following paths:
Ran linting, so some of the changes are black/ruff adjustments